Module
Parsing.String.Basic
- Package
- purescript-parsing
- Repository
- purescript-contrib/purescript-parsing
Basic String
parsers derived from primitive String
parsers.
#intDecimal Source
intDecimal :: forall m. ParserT String m Int
Parser based on the Data.Int.fromString function.
This should be the inverse of show :: String -> Int
.
Examples of strings which can be parsed by this parser:
"3"
"-3"
"+300"
#whiteSpace Source
whiteSpace :: forall m. ParserT String m String
Match zero or more whitespace characters satisfying
Data.CodePoint.Unicode.isSpace
. Always succeeds.
#skipSpaces Source
skipSpaces :: forall m. ParserT String m Unit
Skip whitespace characters and throw them away. Always succeeds.