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

Auxiliary functions to handle patterns in the abstract syntax.

Generic and specific traversals.

  • 2 types
  • 4 classes
  • 24 values
  • PackageAgda-2.7.0.1
  • Exports30
  • LanguageHaskell2010
  • LicenceMIT
  • SourcePattern.hs

Generic traversals

7 declarations
classclass MapNamedArgPattern a where
#

Methods

Instances5MapNamedArgPattern
classclass APatternLike p where
#

Generic pattern traversal.

Associated types

Methods

Instances7APatternLike, …

Specific folds

5 declarations

Specific traversals

4 declarations
valuesubstPattern'
  1. :: (e -> e)

    Substitution function for expressions.

  2. -> [(Name, Pattern' e)]

    (Parallel) substitution.

  3. -> Pattern' e

    Input pattern.

  4. -> Pattern' e
#

Pattern substitution, parametrized by substitution function for embedded expressions.

classclass PatternToExpr p e where
#

Converting a pattern to an expression.

The Hiding context is remembered to create instance metas when translating absurd patterns in instance position.

Methods

Instances5PatternToExpr

Other pattern utilities

4 declarations

Left-hand-side manipulation

10 declarations

Orphan instances

1 instance