Agda
Safe HaskellNone
LanguageHaskell2010

Agda.TypeChecking.Functions

Synopsis

Documentation

etaExpandClause :: PureTCM tcm => Clause -> tcm (Int, Clause) Source #

Expand a clause to the maximal arity, by inserting variable patterns and applying the body to variables. Return the arity and the expanded clause.

getDef :: Term -> TCM (Maybe QName) Source #

Get the name of defined symbol of the head normal form of a term. Returns Nothing if no such head exists.