HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulemegaparsec-9.7.0Haskell2010

Text.Megaparsec.Error.Builder

A set of helpers that should make construction of ParseErrors more concise. This is primarily useful in test suites and for debugging.

  • 2 types
  • 11 values
  • Packagemegaparsec-9.7.0
  • Exports13
  • LanguageHaskell2010
  • LicenceBSD-2-Clause
  • SourceBuilder.hs

Top-level helpers

2 declarations

Error components

9 declarations
valueutok :: Token s -> ET s
#

Construct an “unexpected token” error component.

valueulabel :: String -> ET s
#

Construct an “unexpected label” error component. Do not use with empty strings (for empty strings it's bottom).

valueueof :: ET s
#

Construct an “unexpected end of input” error component.

valueetok :: Token s -> ET s
#

Construct an “expected token” error component.

valueelabel :: String -> ET s
#

Construct an “expected label” error component. Do not use with empty strings.

valueeeof :: ET s
#

Construct an “expected end of input” error component.

Data types

2 declarations
datadata ET s
#

Auxiliary type for construction of trivial parse errors.

Instances7Eq, Data, Ord, Generic, Semigroup, Monoid, …
newtypenewtype EF e
#

Auxiliary type for construction of fancy parse errors.

Instances7Eq, Data, Ord, Generic, Semigroup, Monoid, …