HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulepolyparse-1.13.1Haskell2010

Text.ParserCombinators.Poly.Result

Contents
  1. The parsing result type
Synopsis
  • Packagepolyparse-1.13.1
  • Exports2
  • LanguageHaskell2010
  • LicenceLicenseRef-LGPL
  • SourceResult.hs

The parsing result type

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.1 · Text.ParserCombinators.Poly.Result