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

Safe HaskellNone

Agda.TypeChecking.Rules.LHS.Implicit

Synopsis

Documentation

insertImplicitProblem :: Problem -> TCM ProblemSource

Insert implicit patterns in a problem.

expandImplicitPattern :: Type -> NamedArg Pattern -> TCM (NamedArg Pattern)Source

Eta-expand implicit pattern if of record type.

expandImplicitPattern' :: Type -> NamedArg Pattern -> TCM (Maybe (NamedArg Pattern))Source

Try to eta-expand implicit pattern. Returns Nothing unless dealing with a record type that has eta-expansion and a constructor c. In this case, it returns Just c _ _ ... _ (record constructor applied to as many implicit patterns as there are fields).

insertImplicitPatterns :: ExpandHidden -> [NamedArg Pattern] -> Telescope -> TCM [NamedArg Pattern]Source

Insert implicit patterns in a list of patterns.