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.Pattern

Tools for patterns in concrete syntax.

  • 1 type
  • 4 classes
  • 20 values
  • PackageAgda-2.7.0.1
  • Exports25
  • LanguageHaskell2010
  • LicenceMIT
  • SourcePattern.hs
classclass HasEllipsis a where
#

Has the lhs an occurrence of the ellipsis ...?

Methods

Instances2HasEllipsis
  • HasEllipsis LHSDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.Pattern

    Does the lhs contain an ellipsis?

  • HasEllipsis PatternDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.Pattern
classclass IsWithP p where
#

Check for with-pattern | p.

Methods

Instances4IsWithP
  • IsWithP PatternDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.Pattern
  • IsWithP (Pattern' e)Defined in Agda-2.7.0.1 · Agda.Syntax.Abstract.Pattern · orphan

    Check for with-pattern.

  • IsWithP p => IsWithP (Arg p)Defined in Agda-2.7.0.1 · Agda.Syntax.Concrete.Pattern
  • IsWithP p => IsWithP (Named n p)Defined in Agda-2.7.0.1 · Agda.Syntax.Concrete.Pattern

LHS manipulation (see also 'Pattern')

8 declarations

Generic fold

5 declarations
classclass CPatternLike p where
#

Generic pattern traversal.

See APatternLike.

Methods

Instances9CPatternLike, …

Specific folds.

8 declarations
valuehasEllipsis' :: CPatternLike p => p -> AffineHole Pattern p
#

Compute the context in which the ellipsis occurs, if at all. If there are several occurrences, this is an error. This only counts ellipsis that haven't already been expanded.

Helpers for pattern and lhs parsing

1 declaration

View a pattern p as a list p0 .. pn where p0 is the identifier (in most cases a constructor).

Pattern needs to be parsed already (operators resolved).