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

Agda.TypeChecking.Monad.Options

Synopsis

Documentation

setPragmaOptions :: MonadTCM tcm => PragmaOptions -> tcm ()Source

Sets the pragma options.

setCommandLineOptions :: MonadTCM tcm => 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, then the state is reset.

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

pragmaOptions :: MonadTCM tcm => tcm PragmaOptionsSource

Returns the pragma options which are currently in effect.

commandLineOptions :: MonadTCM tcm => tcm CommandLineOptionsSource

Returns the command line options which are currently in effect.

enableDisplayForms :: MonadTCM tcm => tcm a -> tcm aSource

Disable display forms.

disableDisplayForms :: MonadTCM tcm => tcm a -> tcm aSource

Disable display forms.

displayFormsEnabled :: MonadTCM tcm => tcm BoolSource

Check if display forms are enabled.

dontEtaContractImplicit :: MonadTCM tcm => tcm a -> tcm aSource

Don't eta contract implicit

doEtaContractImplicit :: MonadTCM tcm => tcm a -> tcm aSource

Do eta contract implicit

dontReifyInteractionPoints :: MonadTCM tcm => tcm a -> tcm aSource

Don't reify interaction points

getIncludeDirs :: MonadTCM tcm => tcm [AbsolutePath]Source

Gets the include directories.

Precondition: optIncludeDirs must be Right something.

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.

setIncludeDirsSource

Arguments

:: MonadTCM tcm 
=> [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 have changed, then the state is reset.

An empty list is interpreted as [.].

getInputFile :: MonadTCM tcm => tcm AbsolutePathSource

Should only be run if hasInputFile.

setShowImplicitArguments :: MonadTCM tcm => Bool -> tcm a -> tcm aSource

verboseS :: MonadTCM tcm => VerboseKey -> Int -> tcm () -> tcm ()Source

Precondition: The level must be non-negative.

reportS :: MonadTCM tcm => VerboseKey -> Int -> String -> tcm ()Source

reportSDoc :: MonadTCM tcm => VerboseKey -> Int -> tcm Doc -> tcm ()Source

verboseBracket :: MonadTCM tcm => VerboseKey -> Int -> String -> tcm a -> tcm aSource