HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulepolyparse-1.13Haskell98

Text.ParserCombinators.Poly.Result

  • 1 type
  • 1 value
  • Packagepolyparse-1.13
  • Exports2
  • LanguageHaskell98
  • LicenceLicenseRef-LGPL
  • SourceResult.hs

The parsing result type

2 declarations
datadata Result z a
#

A return type like Either, that distinguishes not only between right and wrong answers, but also has commitment, so that a failure cannot be undone. This should only be used for writing very primitive parsers - really it is an internal detail of the library. The z type is the remaining unconsumed input.

Constructors

Instances1Functor
  • Functor (Result z)Defined in polyparse-1.13 · Text.ParserCombinators.Poly.Result