HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduletrifecta-2.1.4Haskell2010

Text.Trifecta.Combinators

Synopsis
  • Packagetrifecta-2.1.4
  • Exports8
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceCombinators.hs
classclass (MonadPlus m, TokenParsing m) => DeltaParsing (m :: Type -> Type) where

This class provides parsers with easy access to:

1) the current line contents. 2) the current position as a Delta. 3) the ability to use sliced on any parser.

Methods

Instances9DeltaParsing, …
classclass (DeltaParsing m, HasDelta d) => MarkParsing d (m :: Type -> Type) | m -> d where

This class is a refinement of DeltaParsing that adds the ability to mark your position in the input and return there for further parsing later.

Methods

  • mark :: m d

    mark the current location so it can be used in constructing a span, or for later seeking

  • release :: d -> m ()

    Seek a previously marked location

Instances9MarkParsing, …