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

Moduletrifecta-2.1.4Haskell2010

Text.Trifecta.Combinators

  • 2 classes
  • 6 values
  • 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, …
valuesliced :: DeltaParsing m => m a -> m ByteString
#

Run a parser, grabbing all of the text between its start and end points and discarding the original result

valuespanning :: DeltaParsing m => m a -> m Span
#

Discard the result of a parse, returning a Span from where we start to where it ended parsing.

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, …