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

Safe HaskellNone

Agda.TypeChecking.Monad.Env

Synopsis

Documentation

currentModule :: TCM ModuleNameSource

Get the name of the current module, if any.

withCurrentModule :: ModuleName -> TCM a -> TCM aSource

Set the name of the current module.

getAnonymousVariables :: ModuleName -> TCM NatSource

Get the number of variables bound by anonymous modules.

withAnonymousModule :: ModuleName -> Nat -> TCM a -> TCM aSource

Add variables bound by an anonymous module.

withEnv :: TCEnv -> TCM a -> TCM aSource

Set the current environment to the given

getEnv :: TCM TCEnvSource

Get the current environment

withIncreasedModuleNestingLevel :: TCM a -> TCM aSource

Increases the module nesting level by one in the given computation.

withHighlightingLevel :: HighlightingLevel -> TCM a -> TCM aSource

Set highlighting level

doExpandLast :: TCM a -> TCM aSource

Restore setting for ExpandLast to default.

performedSimplification :: MonadReader TCEnv m => m a -> m aSource

If the reduced did a proper match (constructor or literal pattern), then record this as simplification step.

onlyReduceProjections :: TCM a -> TCM aSource

Reduce Def f vs only if f is a projection.