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.TypeChecking.Rewriting.NonLinPattern

Various utility functions dealing with the non-linear, higher-order patterns used for rewrite rules.

  • 4 classes
  • 9 values
  • PackageAgda-2.7.0.1
  • Exports13
  • LanguageHaskell2010
  • LicenceMIT
  • SourceNonLinPattern.hs
classclass PatternFrom a b where
#

Turn a term into a non-linear pattern, treating the free variables as pattern variables. The first argument indicates the relevance we are working under: if this is Irrelevant, then we construct a pattern that never fails to match. The second argument is the number of bound variables (from pattern lambdas). The third argument is the type of the term.

Methods

Instances7PatternFrom, …
classclass NLPatToTerm p a where
#

Convert from a non-linear pattern to a term.

Methods

Instances10NLPatToTerm, …
classclass NLPatVars a where
#

Gather the set of pattern variables of a non-linear pattern

Methods

Instances6NLPatVars
classclass GetMatchables a where
#

Get all symbols that a non-linear pattern matches against

Methods

Instances11GetMatchables, …

Orphan instances

3 instances