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

Safe HaskellNone
LanguageHaskell2010

Agda.TypeChecking.CheckInternal

Description

A bidirectional type checker for internal syntax.

Performs checking on unreduced terms. With the exception that projection-like function applications have to be reduced since they break bidirectionality.

Synopsis

Documentation

checkType :: Type -> TCM () Source #

Entry point for e.g. checking WithFunctionType.

checkInternal :: Term -> Type -> TCM () Source #

Entry point for term checking.

data Action Source #

checkInternal traverses the whole Term, and we can use this traversal to modify the term.

Constructors

Action 

Fields

defaultAction :: Action Source #

The default action is to not change the Term at all.

infer :: Term -> TCM Type Source #

Infer type of a neutral term.

inferSort :: Term -> TCM Sort Source #

Compute the sort of a type.