Module
Text.Parsing.Parser.String.Basic
- Package
- purescript-parsing
- Repository
- purescript-contrib/purescript-parsing
Basic String
parsers derived from primitive String
parsers.
Note: In the future, the noneOf, noneOfCodePoints, oneOf, oneOfCodePoints, skipSpaces, whiteSpace should be moved into this module and removed from the Text.Parsing.Parser.String module, because they are not primitive parsers.
#intDecimal Source
intDecimal :: forall m. Monad 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"
Re-exports from Text.Parsing.Parser.String
#whiteSpace Source
whiteSpace :: forall m. Monad m => ParserT String m String
Match zero or more whitespace characters satisfying
Data.CodePoint.Unicode.isSpace
. Always succeeds.
#skipSpaces Source
skipSpaces :: forall m. Monad m => ParserT String m Unit
Skip whitespace characters and throw them away. Always succeeds.