HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

ModuleAgda-2.8.0.2Haskell2010

Agda.TypeChecking.Rewriting.NonLinPattern

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

Synopsis
  • PackageAgda-2.8.0.2
  • 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