Safe Haskell | None |
---|---|
Language | Haskell2010 |
Paper over some differences between megaparsec 5 and 6, making it possible to write code that supports both.
- module Text.Megaparsec
- module Text.Megaparsec.Char
- type MPErr = Void
- mptext :: MonadParsec e Text m => Tokens Text -> m (Tokens Text)
- mpMkPos :: Int -> Pos
- mpUnPos :: Pos -> Int
- mpMkParseError :: FilePath -> String -> ParseError Char String
Documentation
module Text.Megaparsec
module Text.Megaparsec.Char
mptext :: MonadParsec e Text m => Tokens Text -> m (Tokens Text) Source #
Parse and return some Text.
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.