Sets the pragma options. Checks for unsafe combinations.
ModuleAgda-2.7.0.1Haskell2010
Agda.TypeChecking.Monad.Options
- 39 values
- PackageAgda-2.7.0.1
- Exports39
- LanguageHaskell2010
- LicenceMIT
- SourceOptions.hs
Check that that you don't turn on inconsistent options. For instance, if --a implies --b and you have both --a and --no-b. Only warn for things that have changed compared to the old options.
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 (partly, see setIncludeDirs).
An empty list of relative include directories (Left []) is
interpreted as ["."].
setCommandLineOptions' :: AbsolutePathThe base directory of relative paths.
-> CommandLineOptions-> TCM ()
getAgdaLibFiles :: AbsolutePathThe file name.
-> TopLevelModuleNameThe top-level module name.
-> TCM [AgdaLibFile]
Returns the library files for a given file.
Nothing is returned if optUseLibs is False.
An error is raised if optUseLibs is True and a library file is located too far down the directory hierarchy (see checkLibraryFileNotTooFarDown).
Returns potential library files for a file without a known top-level module name.
Once the top-level module name is known one can use checkLibraryFileNotTooFarDown to check that the potential library files were not located too far down the directory hierarchy.
Nothing is returned if optUseLibs is False.
Checks that a library file for the module A.B.C (say) in the
directory dirAB is located at least two directories above the
file (not in dir/A or dirAB).
getLibraryOptions :: AbsolutePathThe file name.
-> TopLevelModuleNameThe top-level module name.
-> TCM [OptionsPragma]
Returns the library options for a given file.
setLibraryPaths :: AbsolutePathThe base directory of relative paths.
-> CommandLineOptions-> TCM CommandLineOptions
addDefaultLibraries :: AbsolutePathThe base directory of relative paths.
-> CommandLineOptions-> TCM CommandLineOptions
Set pragma options without checking for consistency.
Set pragma options and check them for consistency.
Disable display forms.
Disable display forms.
Check if display forms are enabled.
Gets the include directories.
Precondition: optAbsoluteIncludePaths must be nonempty (i.e. setCommandLineOptions must have run).
setIncludeDirs :: [FilePath]New include directories.
-> AbsolutePathThe base directory of relative paths.
-> 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 some other things).
An empty list is interpreted as ["."].
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.
Change PragmaOptions for a computation and restore afterwards.
Returns the Language currently in effect.