Safe Haskell | Safe-Inferred |
---|
Generic parsing utils.
Synopsis
- type Parser a = ParserT Identity a
- type ParserT m a = ParsecT Void.Void Text m a
- type ParserS s a = ParserT (State.StateT s Identity) a
- parse :: Parser a -> Text -> Either Text a
- parseM :: Monad m => FilePath -> ParserT m a -> Text -> m (Either Text a)
- parseS :: state -> FilePath -> ParserS state a -> Text -> Either Text a
- parse_maybe :: Parser a -> Text -> Maybe a
- file :: a -> ParserS st a -> st -> FilePath -> IO (Either Text a)
- p_int :: ParserT m Int
- p_nat :: ParserT m Int
- p_positive :: ParserT m Int
- p_float :: ParserT m Double
- p_unsigned_float :: ParserT m Double
- is_digit :: Char -> Bool