Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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
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.