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

Safe HaskellNone
LanguageHaskell2010

Agda.TypeChecking.Monad.Options

Synopsis

Documentation

setPragmaOptions :: PragmaOptions -> TCM () Source #

Sets the pragma options.

setCommandLineOptions :: CommandLineOptions -> TCM () Source #

Sets the command line options (both persistent and pragma options are updated).

Relative include directories are made absolute with respect to the current working directory. If the include directories have changed (thus, they are Left now, and were previously Right something), then the state is reset (completely, see setIncludeDirs) .

An empty list of relative include directories (Left []) is interpreted as ["."].

enableDisplayForms :: TCM a -> TCM a Source #

Disable display forms.

disableDisplayForms :: TCM a -> TCM a Source #

Disable display forms.

displayFormsEnabled :: TCM Bool Source #

Check if display forms are enabled.

getIncludeDirs :: TCM [AbsolutePath] Source #

Gets the include directories.

Precondition: optAbsoluteIncludePaths must be nonempty (i.e. setCommandLineOptions must have run).

data RelativeTo Source #

Which directory should form the base of relative include paths?

Constructors

ProjectRoot AbsolutePath

The root directory of the "project" containing the given file. The file needs to be syntactically correct, with a module name matching the file name.

CurrentDir

The current working directory.

setIncludeDirs Source #

Arguments

:: [FilePath]

New include directories.

-> RelativeTo

How should relative paths be interpreted?

-> TCM () 

Makes the given directories absolute and stores them as include directories.

If the include directories change, then the state is reset (completely, except for the include directories and stInteractionOutputCallback).

An empty list is interpreted as ["."].

withShowAllArguments :: TCM a -> TCM a Source #

Switch on printing of implicit and irrelevant arguments. E.g. for reification in with-function generation.

Restores all PragmaOptions after completion. Thus, do not attempt to make persistent PragmaOptions changes in a withShowAllArguments bracket.

withPragmaOptions :: (PragmaOptions -> PragmaOptions) -> TCM a -> TCM a Source #

Change PragmaOptions for a computation and restore afterwards.

getVerbosity :: HasOptions m => m (Trie String Int) Source #

Retrieve the current verbosity level.

hasVerbosity :: HasOptions m => VerboseKey -> Int -> m Bool Source #

Check whether a certain verbosity level is activated.

Precondition: The level must be non-negative.

hasExactVerbosity :: HasOptions m => VerboseKey -> Int -> m Bool Source #

Check whether a certain verbosity level is activated (exact match).

whenExactVerbosity :: MonadTCM tcm => VerboseKey -> Int -> tcm () -> tcm () Source #

Run a computation if a certain verbosity level is activated (exact match).

verboseS :: (MonadReader TCEnv m, HasOptions m) => VerboseKey -> Int -> m () -> m () Source #

Run a computation if a certain verbosity level is activated.

Precondition: The level must be non-negative.