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

ModuleAgda-2.7.0.1Haskell2010

Agda.Syntax.Concrete.Operators.Parser

  • 3 types
  • 1 class
  • 11 values
  • PackageAgda-2.7.0.1
  • Exports16
  • LanguageHaskell2010
  • LicenceMIT
  • SourceParser.hs
valueparse :: IsExpr e => (ParseSections, Parser e a) -> [e] -> [a]
#

Runs a parser. If sections should be parsed, then identifiers with at least two name parts are split up into multiple tokens, using PositionInName to record the tokens' original positions within their respective identifiers.

Parser combinators

9 declarations
valueatLeastTwoParts :: IsExpr e => Parser e Name
#

Parses a split-up, unqualified name consisting of at least two name parts.

The parser does not check that underscores and other name parts alternate. The range of the resulting name is the range of the first name part that is not an underscore.

familytype family OperatorType (k :: NotationKind) e
#

Used to define the return type of opP.

Instances4OperatorType
valueopP
  1. :: IsExpr e
  2. => ParseSections
  3. -> Parser e e
  4. -> NewNotation
  5. -> NK k
  6. -> Parser e (OperatorType k e)
#

Parse the "operator part" of the given notation.

Normal holes (but not binders) at the beginning and end are ignored.

If the notation does not contain any binders, then a section notation is allowed.