Agda-2.5.3.20180519: A dependently typed functional programming language and proof assistant

Safe HaskellNone
LanguageHaskell2010

Agda.TypeChecking.Patterns.Internal

Description

Tools to manipulate patterns in internal syntax in the TCM (type checking monad).

Synopsis

Documentation

class TermToPattern a b where Source #

Convert a term (from a dot pattern) to a DeBruijn pattern.

Methods

termToPattern :: a -> TCM b Source #

termToPattern :: (TermToPattern a' b', Traversable f, a ~ f a', b ~ f b') => a -> TCM b Source #

Instances

DeBruijn (Pattern' a) => TermToPattern Term (Pattern' a) Source # 
TermToPattern a b => TermToPattern [a] [b] Source # 

Methods

termToPattern :: [a] -> TCM [b] Source #

TermToPattern a b => TermToPattern (Arg a) (Arg b) Source # 

Methods

termToPattern :: Arg a -> TCM (Arg b) Source #

TermToPattern a b => TermToPattern (Named c a) (Named c b) Source # 

Methods

termToPattern :: Named c a -> TCM (Named c b) Source #