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

Safe HaskellNone
LanguageHaskell98

Agda.TypeChecking.Monad.Env

Contents

Synopsis

Documentation

currentModule :: MonadReader TCEnv m => m ModuleName Source

Get the name of the current module, if any.

withCurrentModule :: ModuleName -> TCM a -> TCM a Source

Set the name of the current module.

getAnonymousVariables :: MonadReader TCEnv m => ModuleName -> m Nat Source

Get the number of variables bound by anonymous modules.

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

Add variables bound by an anonymous module.

withEnv :: TCEnv -> TCM a -> TCM a Source

Set the current environment to the given

getEnv :: TCM TCEnv Source

Get the current environment

withIncreasedModuleNestingLevel :: TCM a -> TCM a Source

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

withHighlightingLevel :: HighlightingLevel -> TCM a -> TCM a Source

Set highlighting level

doExpandLast :: TCM a -> TCM a Source

Restore setting for ExpandLast to default.

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

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

performedSimplification' :: MonadReader TCEnv m => Simplification -> m a -> m a Source

Controlling reduction.

onlyReduceProjections :: TCM a -> TCM a Source

Reduce Def f vs only if f is a projection.

allowAllReductions :: TCM a -> TCM a Source

Allow all reductions except for non-terminating functions (default).

allowNonTerminatingReductions :: TCM a -> TCM a Source

Allow all reductions including non-terminating functions.