Safe Haskell | None |
---|---|
Language | Haskell2010 |
Text.Megaparsec.Compat
Description
Paper over some differences between megaparsec 5 and 6, making it possible to write code that supports both.
- module Text.Megaparsec
- type MPErr = Dec
- mptext :: MonadParsec e Text m => Text -> m Text
- mpMkPos :: Int -> Pos
- mpUnPos :: Pos -> Int
- mpMkParseError :: FilePath -> String -> ParseError Char String
Documentation
module Text.Megaparsec
mpMkPos :: Int -> Pos Source #
Make a Pos. With a negative argument, throws InvalidPosException (megaparsec >= 6) or calls error (megaparsec < 6).
mpMkParseError :: FilePath -> String -> ParseError Char String Source #
Make a simple parse error.