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

Agda.Interaction.BasicOps

Synopsis

Documentation

parseExpr :: Range -> String -> TCM ExprSource

Parses an expression.

evalInCurrent :: Expr -> TCM ExprSource

Evaluate the given expression in the current environment

data OutputConstraint' a b Source

A subset of OutputConstraint.

Constructors

OfType' 

Fields

ofName :: b
 
ofExpr :: a
 

typeInCurrent :: Rewrite -> Expr -> TCM ExprSource

Returns the type of the expression in the current environment We wake up irrelevant variables just in case the user want to invoke that command in an irrelevant context.

atTopLevel :: TCM a -> TCM aSource

Runs the given computation as if in an anonymous goal at the end of the top-level module.

moduleContentsSource

Arguments

:: Range

The range of the next argument.

-> String

The module name.

-> TCM ([Name], [(Name, Type)])

Module names, names paired up with corresponding types.

Returns the contents of the given module.