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

ModuleAgda-2.7.0.1Haskell2010

Agda.Syntax.Concrete.Operators.Parser.Monad

The parser monad used by the operator parser

  • 3 types
  • 7 values
  • PackageAgda-2.7.0.1
  • Exports10
  • LanguageHaskell2010
  • LicenceMIT
  • SourceMonad.hs
datadata MemoKey
#
Instances5Eq, Show, Generic, Hashable, Rep
valuedoc :: Doc -> Parser tok a -> Parser tok a
#

Uses the given document as the printed representation of the given parser. The document's precedence is taken to be atomP.

valuememoise :: MemoKey -> Parser tok tok -> Parser tok tok
#

Memoises the given parser.

Every memoised parser must be annotated with a unique key. (Parametrised parsers must use distinct keys for distinct inputs.)

valuememoiseIfPrinting :: MemoKey -> Parser tok tok -> Parser tok tok
#

Memoises the given parser, but only if printing, not if parsing.

Every memoised parser must be annotated with a unique key. (Parametrised parsers must use distinct keys for distinct inputs.)

valuegrammar :: Parser tok a -> Doc
#

Tries to print the parser, or returns empty, depending on the implementation. This function might not terminate.