Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Parser a
- parseFromFile :: MonadIO m => Parser a -> FilePath -> m (Maybe a)
- parseFromFileEx :: MonadIO m => Parser a -> FilePath -> m (Result a)
- parseText :: Parser a -> Text -> FilePath -> Result a
- parseString :: Parser a -> String -> FilePath -> Result a
- parseTest :: (MonadIO m, Show a) => Parser a -> String -> m ()
Documentation
Instances
Monad Parser Source # | |
Functor Parser Source # | |
MonadFail Parser Source # | |
Defined in Text.Parsix.Parser.Internal | |
Applicative Parser Source # | |
Alternative Parser Source # | |
MonadPlus Parser Source # | |
TokenParsing Parser Source # | |
LookAheadParsing Parser Source # | |
Defined in Text.Parsix.Parser.Internal | |
CharParsing Parser Source # | |
Parsing Parser Source # | |
RecoveryParsing Parser Source # | |
Defined in Text.Parsix.Combinators | |
SliceParsing Parser Source # | |
Semigroup a => Semigroup (Parser a) Source # | |
Monoid a => Monoid (Parser a) Source # | |
parseText :: Parser a -> Text -> FilePath -> Result a Source #
parseText p i file
runs a parser p
on i
. file
is only used for
reporting errors.