Hoogle Search
Within LTS Haskell 24.37 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
type
Parsec e s = ParsecT e s Identitymegaparsec Text.Megaparsec Parsec is a non-transformer variant of the more general ParsecT monad transformer.
data
ParsecT e s (m :: Type -> Type) amegaparsec Text.Megaparsec ParsecT e s m a is a parser with custom data component of error e, stream type s, underlying monad m and return type a.
-
megaparsec Text.Megaparsec A special kind of state that is used to calculate line/column positions on demand.
PosState :: s -> Int -> SourcePos -> Pos -> String -> PosState smegaparsec Text.Megaparsec No documentation available.
-
megaparsec Text.Megaparsec.Error ParseError s e represents a parse error parametrized over the stream type s and the custom data e. Semigroup and Monoid instances of the data type allow us to merge parse errors from different branches of parsing. When merging two ParseErrors, the longest match is preferred; if positions are the same, custom data sets and collections of message items are combined. Note that fancy errors take precedence over trivial errors in merging.
-
megaparsec Text.Megaparsec.Error A non-empty collection of ParseErrors equipped with PosState that allows us to pretty-print the errors efficiently and correctly.
ParseErrorBundle :: NonEmpty (ParseError s e) -> PosState s -> ParseErrorBundle s emegaparsec Text.Megaparsec.Error No documentation available.
newtype
ParsecT e s (m :: Type -> Type) amegaparsec Text.Megaparsec.Internal ParsecT e s m a is a parser with custom data component of error e, stream type s, underlying monad m and return type a.
-
megaparsec Text.Megaparsec.Internal No documentation available.
-
Textual source position. The position includes name of file, line number, and column number. You probably do not want to import this module directly because Text.Megaparsec re-exports it anyway.