f :: Flag opts is an action on the option record that results from
parsing an option. f opts produces either an error message or an
updated options record
ModuleAgda-2.7.0.1Haskell2010
Agda.Interaction.Options
- 18 types
- 1 class
- 158 values
- PackageAgda-2.7.0.1
- Exports177
- LanguageHaskell2010
- LicenceMIT
- SourceBase.hs
Constructors
OptionsoptProgramName :: StringoptInputFile :: Maybe FilePathoptIncludePaths :: [FilePath]optAbsoluteIncludePaths :: [AbsolutePath]The list should not contain duplicates.
optLibraries :: [LibName]optOverrideLibrariesFile :: Maybe FilePathUse this (if Just) instead of
~/.agda/libraries.optDefaultLibs :: BoolUse
~/.agda/defaults.optUseLibs :: Boollook for
.agda-libfiles.optTraceImports :: IntegerConfigure notifications about imported modules.
optTrustedExecutables :: Map ExeName FilePathMap names of trusted executables to absolute paths.
optPrintAgdaDataDir :: BooloptPrintAgdaAppDir :: BooloptPrintVersion :: Maybe PrintAgdaVersionoptPrintHelp :: Maybe HelpoptInteractive :: BoolAgda REPL (
-I).optGHCiInteraction :: BooloptJSONInteraction :: BooloptExitOnError :: !BoolExit if an interactive command fails.
optCompileDir :: Maybe FilePathIn the absence of a path the project root is used.
optGenerateVimFile :: BooloptIgnoreInterfaces :: BooloptIgnoreAllInterfaces :: BooloptLocalInterfaces :: BooloptPragmaOptions :: PragmaOptionsoptOnlyScopeChecking :: BoolShould the top-level module only be scope-checked, and not type-checked?
optTransliterate :: BoolShould code points that are not supported by the locale be transliterated?
optDiagnosticsColour :: DiagnosticsColoursConfigure colour output.
Instances8Show, Generic, NFData, LensIncludePaths, LensPersistentVerbosity, LensPragmaOptions, …
Show CommandLineOptionsDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseGeneric CommandLineOptionsDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseNFData CommandLineOptionsDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseLensIncludePaths CommandLineOptionsDefined in Agda-2.7.0.1 · Agda.Interaction.Options.LensesLensPersistentVerbosity CommandLineOptionsDefined in Agda-2.7.0.1 · Agda.Interaction.Options.LensesLensPragmaOptions CommandLineOptionsDefined in Agda-2.7.0.1 · Agda.Interaction.Options.LensesLensSafeMode CommandLineOptionsDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Lensestype Rep CommandLineOptions = D1 ('MetaDataDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Base"CommandLineOptions"
"Agda.Interaction.Options.Base"
"Agda-2.7.0.1-DbbZpETDDF1KkwuzEZvfn8"
'False) (C1 ('MetaCons"Options"
'PrefixI 'True) ((((S1 ('MetaSel ('Just"optProgramName"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: (S1 ('MetaSel ('Just"optInputFile"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FilePath)) :*: S1 ('MetaSel ('Just"optIncludePaths"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [FilePath]))) :*: (S1 ('MetaSel ('Just"optAbsoluteIncludePaths"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [AbsolutePath]) :*: (S1 ('MetaSel ('Just"optLibraries"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [LibName]) :*: S1 ('MetaSel ('Just"optOverrideLibrariesFile"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FilePath))))) :*: ((S1 ('MetaSel ('Just"optDefaultLibs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just"optUseLibs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just"optTraceImports"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer))) :*: ((S1 ('MetaSel ('Just"optTrustedExecutables"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map ExeName FilePath)) :*: S1 ('MetaSel ('Just"optPrintAgdaDataDir"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just"optPrintAgdaAppDir"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just"optPrintVersion"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PrintAgdaVersion)))))) :*: (((S1 ('MetaSel ('Just"optPrintHelp"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Help)) :*: (S1 ('MetaSel ('Just"optInteractive"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just"optGHCiInteraction"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just"optJSONInteraction"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just"optExitOnError"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just"optCompileDir"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FilePath)) :*: S1 ('MetaSel ('Just"optGenerateVimFile"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just"optIgnoreInterfaces"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just"optIgnoreAllInterfaces"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just"optLocalInterfaces"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just"optPragmaOptions"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PragmaOptions) :*: S1 ('MetaSel ('Just"optOnlyScopeChecking"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just"optTransliterate"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just"optDiagnosticsColour"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DiagnosticsColours)))))))
Describes whether an option takes an argument or not, and if so
how the argument is injected into a value of type a.
A WarningMode has two components: a set of warnings to be displayed
and a flag stating whether warnings should be turned into fatal errors.
Constructors
Instances6Eq, Show, Generic, NFData, EmbPrj, Rep
Eq WarningModeDefined in Agda-2.7.0.1 · Agda.Interaction.Options.WarningsShow WarningModeDefined in Agda-2.7.0.1 · Agda.Interaction.Options.WarningsGeneric WarningModeDefined in Agda-2.7.0.1 · Agda.Interaction.Options.WarningsNFData WarningModeDefined in Agda-2.7.0.1 · Agda.Interaction.Options.WarningsEmbPrj WarningModeDefined in Agda-2.7.0.1 · Agda.TypeChecking.Serialise.Instances.Errors · orphantype Rep WarningMode = D1 ('MetaDataDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Warnings"WarningMode"
"Agda.Interaction.Options.Warnings"
"Agda-2.7.0.1-DbbZpETDDF1KkwuzEZvfn8"
'False) (C1 ('MetaCons"WarningMode"
'PrefixI 'True) (S1 ('MetaSel ('Just"_warningSet"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set WarningName)) :*: S1 ('MetaSel ('Just"_warn2Error"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))
We want to know whether we are allowed to insert unicode characters or not.
Instances10Bounded, Enum, Eq, Show, Generic, NFData, …
Bounded UnicodeOrAsciiDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.GlyphEnum UnicodeOrAsciiDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.GlyphEq UnicodeOrAsciiDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.GlyphShow UnicodeOrAsciiDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.GlyphGeneric UnicodeOrAsciiDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.GlyphNFData UnicodeOrAsciiDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.GlyphBoolean UnicodeOrAsciiDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.GlyphIsBool UnicodeOrAsciiDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.GlyphEmbPrj UnicodeOrAsciiDefined in Agda-2.7.0.1 · Agda.TypeChecking.Serialise.Instances.Errors · orphantype Rep UnicodeOrAscii = D1 ('MetaDataDefined in Agda-2.7.0.1 · Agda.Syntax.Concrete.Glyph"UnicodeOrAscii"
"Agda.Syntax.Concrete.Glyph"
"Agda-2.7.0.1-DbbZpETDDF1KkwuzEZvfn8"
'False) (C1 ('MetaCons"UnicodeOk"
'PrefixI 'False) U1 :+: C1 ('MetaCons"AsciiOnly"
'PrefixI 'False) U1)
The default termination depth.
Instances6Eq, Show, Generic, NFData, EmbPrj, Rep
Eq ConfluenceCheckDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseShow ConfluenceCheckDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseGeneric ConfluenceCheckDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseNFData ConfluenceCheckDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseEmbPrj ConfluenceCheckDefined in Agda-2.7.0.1 · Agda.TypeChecking.Serialise.Instances.Errors · orphantype Rep ConfluenceCheck = D1 ('MetaDataDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Base"ConfluenceCheck"
"Agda.Interaction.Options.Base"
"Agda-2.7.0.1-DbbZpETDDF1KkwuzEZvfn8"
'False) (C1 ('MetaCons"LocalConfluenceCheck"
'PrefixI 'False) U1 :+: C1 ('MetaCons"GlobalConfluenceCheck"
'PrefixI 'False) U1)
Options which can be set in a pragma.
Constructors
PragmaOptions_optShowImplicit :: WithDefault 'False_optShowGeneralized :: WithDefault 'TrueShow generalized parameters in Pi types
_optShowIrrelevant :: WithDefault 'False_optUseUnicode :: WithDefault' UnicodeOrAscii 'True_optVerbose :: !Verbosity_optProfiling :: ProfileOptions_optProp :: WithDefault 'False_optLevelUniverse :: WithDefault 'False_optTwoLevel :: WithDefault 'False_optAllowUnsolved :: WithDefault 'False_optAllowIncompleteMatch :: WithDefault 'False_optPositivityCheck :: WithDefault 'True_optTerminationCheck :: WithDefault 'True_optTerminationDepth :: CutOffCut off structural order comparison at some depth in termination checker?
_optUniverseCheck :: WithDefault 'True_optOmegaInOmega :: WithDefault 'False_optCumulativity :: WithDefault 'False_optSizedTypes :: WithDefault 'False_optGuardedness :: WithDefault 'False_optInjectiveTypeConstructors :: WithDefault 'False_optUniversePolymorphism :: WithDefault 'True_optIrrelevantProjections :: WithDefault 'False_optExperimentalIrrelevance :: WithDefault 'Falseirrelevant levels, irrelevant data matching
_optWithoutK :: WithDefault 'False_optCubicalCompatible :: WithDefault 'False_optCopatterns :: WithDefault 'TrueAllow definitions by copattern matching?
_optPatternMatching :: WithDefault 'TrueIs pattern matching allowed in the current file?
_optExactSplit :: WithDefault 'True_optHiddenArgumentPuns :: WithDefault 'FalseShould patterns of the form
{x}or⦃ x ⦄be interpreted as puns?_optEta :: WithDefault 'True_optForcing :: WithDefault 'TruePerform the forcing analysis on data constructors?
_optProjectionLike :: WithDefault 'TruePerform the projection-likeness analysis on functions?
_optErasure :: WithDefault 'False_optErasedMatches :: WithDefault 'TrueAllow matching in erased positions for single-constructor, non-indexed data/record types. (This kind of matching is always allowed for record types with η-equality.)
_optEraseRecordParameters :: WithDefault 'FalseMark parameters of record modules as erased?
_optRewriting :: WithDefault 'FalseCan rewrite rules be added and used?
_optCubical :: Maybe Cubical_optGuarded :: WithDefault 'False_optFirstOrder :: WithDefault 'FalseShould we speculatively unify function applications as if they were injective? Implies optRequireUniqueMetaSolutions.
_optRequireUniqueMetaSolutions :: WithDefault 'TrueForbid non-unique meta solutions allowed. For instance from INJECTIVE_FOR_INFERENCE pragmas.
_optPostfixProjections :: WithDefault 'TrueShould system generated projections
ProjSystembe printed postfix (True) or prefix (False)._optKeepPatternVariables :: WithDefault 'TrueShould case splitting replace variables with dot patterns (False) or keep them as variables (True).
_optInferAbsurdClauses :: WithDefault 'True_optInstanceSearchDepth :: Int_optBacktrackingInstances :: WithDefault 'False_optQualifiedInstances :: WithDefault 'TrueShould instance search consider instances with qualified names?
_optInversionMaxDepth :: Int_optSafe :: WithDefault 'False_optDoubleCheck :: WithDefault 'False_optSyntacticEquality :: !Maybe IntShould the conversion checker use the syntactic equality shortcut? Nothing means that it should.
Just n, for a non-negative numbern, means that syntactic equality checking getsnunits of fuel. If the fuel becomes zero, then syntactic equality checking is turned off. The fuel counter is decreased in the failure continuation of checkSyntacticEquality._optWarningMode :: WarningMode_optCompileMain :: WithDefault 'TrueTreat the module given at the command line or via interaction as main module in compilation?
_optCaching :: WithDefault 'True_optCountClusters :: WithDefault 'FalseCount extended grapheme clusters rather than code points when generating LaTeX.
_optAutoInline :: WithDefault 'FalseAutomatic compile-time inlining for simple definitions (unless marked
NOINLINE)._optPrintPatternSynonyms :: WithDefault 'True_optFastReduce :: WithDefault 'TrueUse the Agda abstract machine (
fastReduce)?_optCallByName :: WithDefault 'FalseUse call-by-name instead of call-by-need.
_optConfluenceCheck :: Maybe ConfluenceCheckCheck confluence of rewrite rules?
_optCohesion :: WithDefault 'FalseAre the cohesion modalities available?
_optFlatSplit :: WithDefault 'FalseCan we split on a
(@flat x : A)argument?_optImportSorts :: WithDefault 'TrueShould every top-level module start with an implicit statement
open import Agda.Primitive using (Set; Prop)?_optLoadPrimitives :: WithDefault 'TrueShould we load the primitive modules at all? This is a stronger form of optImportSorts.
_optAllowExec :: WithDefault 'FalseAllow running external
executablesfrom meta programs._optSaveMetas :: WithDefault 'FalseSave meta-variables to interface files.
_optShowIdentitySubstitutions :: WithDefault 'FalseShow identity substitutions when pretty-printing terms (i.e. always show all arguments of a metavariable).
_optKeepCoveringClauses :: WithDefault 'FalseDo not discard clauses constructed by the coverage checker (needed for some external backends).
_optLargeIndices :: WithDefault 'FalseAllow large indices, and large forced arguments in constructors.
_optForcedArgumentRecursion :: WithDefault 'TrueAllow recursion on forced constructor arguments.
Instances9Eq, Show, Generic, NFData, LensPersistentVerbosity, LensSafeMode, …
Eq PragmaOptionsDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseShow PragmaOptionsDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseGeneric PragmaOptionsDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseNFData PragmaOptionsDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseLensPersistentVerbosity PragmaOptionsDefined in Agda-2.7.0.1 · Agda.Interaction.Options.LensesLensSafeMode PragmaOptionsDefined in Agda-2.7.0.1 · Agda.Interaction.Options.LensesLensVerbosity PragmaOptionsDefined in Agda-2.7.0.1 · Agda.Interaction.Options.LensesEmbPrj PragmaOptionsDefined in Agda-2.7.0.1 · Agda.TypeChecking.Serialise.Instances.Errors · orphantype Rep PragmaOptions = D1 ('MetaDataDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Base"PragmaOptions"
"Agda.Interaction.Options.Base"
"Agda-2.7.0.1-DbbZpETDDF1KkwuzEZvfn8"
'False) (C1 ('MetaCons"PragmaOptions"
'PrefixI 'True) ((((((S1 ('MetaSel ('Just"_optShowImplicit"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optShowGeneralized"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True))) :*: (S1 ('MetaSel ('Just"_optShowIrrelevant"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optUseUnicode"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault' UnicodeOrAscii 'True)))) :*: ((S1 ('MetaSel ('Just"_optVerbose"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Verbosity) :*: S1 ('MetaSel ('Just"_optProfiling"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProfileOptions)) :*: (S1 ('MetaSel ('Just"_optProp"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optLevelUniverse"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False))))) :*: (((S1 ('MetaSel ('Just"_optTwoLevel"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optAllowUnsolved"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False))) :*: (S1 ('MetaSel ('Just"_optAllowIncompleteMatch"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optPositivityCheck"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True)))) :*: ((S1 ('MetaSel ('Just"_optTerminationCheck"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True)) :*: S1 ('MetaSel ('Just"_optTerminationDepth"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CutOff)) :*: (S1 ('MetaSel ('Just"_optUniverseCheck"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True)) :*: (S1 ('MetaSel ('Just"_optOmegaInOmega"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optCumulativity"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False))))))) :*: ((((S1 ('MetaSel ('Just"_optSizedTypes"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optGuardedness"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False))) :*: (S1 ('MetaSel ('Just"_optInjectiveTypeConstructors"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optUniversePolymorphism"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True)))) :*: ((S1 ('MetaSel ('Just"_optIrrelevantProjections"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optExperimentalIrrelevance"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False))) :*: (S1 ('MetaSel ('Just"_optWithoutK"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optCubicalCompatible"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False))))) :*: (((S1 ('MetaSel ('Just"_optCopatterns"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True)) :*: S1 ('MetaSel ('Just"_optPatternMatching"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True))) :*: (S1 ('MetaSel ('Just"_optExactSplit"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True)) :*: S1 ('MetaSel ('Just"_optHiddenArgumentPuns"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)))) :*: ((S1 ('MetaSel ('Just"_optEta"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True)) :*: S1 ('MetaSel ('Just"_optForcing"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True))) :*: (S1 ('MetaSel ('Just"_optProjectionLike"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True)) :*: (S1 ('MetaSel ('Just"_optErasure"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optErasedMatches"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True)))))))) :*: (((((S1 ('MetaSel ('Just"_optEraseRecordParameters"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optRewriting"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False))) :*: (S1 ('MetaSel ('Just"_optCubical"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Cubical)) :*: S1 ('MetaSel ('Just"_optGuarded"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)))) :*: ((S1 ('MetaSel ('Just"_optFirstOrder"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optRequireUniqueMetaSolutions"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True))) :*: (S1 ('MetaSel ('Just"_optPostfixProjections"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True)) :*: S1 ('MetaSel ('Just"_optKeepPatternVariables"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True))))) :*: (((S1 ('MetaSel ('Just"_optInferAbsurdClauses"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True)) :*: S1 ('MetaSel ('Just"_optInstanceSearchDepth"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :*: (S1 ('MetaSel ('Just"_optBacktrackingInstances"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optQualifiedInstances"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True)))) :*: ((S1 ('MetaSel ('Just"_optInversionMaxDepth"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just"_optSafe"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False))) :*: (S1 ('MetaSel ('Just"_optDoubleCheck"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: (S1 ('MetaSel ('Just"_optSyntacticEquality"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just"_optWarningMode"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WarningMode)))))) :*: ((((S1 ('MetaSel ('Just"_optCompileMain"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True)) :*: S1 ('MetaSel ('Just"_optCaching"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True))) :*: (S1 ('MetaSel ('Just"_optCountClusters"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optAutoInline"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)))) :*: ((S1 ('MetaSel ('Just"_optPrintPatternSynonyms"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True)) :*: S1 ('MetaSel ('Just"_optFastReduce"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True))) :*: (S1 ('MetaSel ('Just"_optCallByName"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: (S1 ('MetaSel ('Just"_optConfluenceCheck"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ConfluenceCheck)) :*: S1 ('MetaSel ('Just"_optCohesion"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)))))) :*: (((S1 ('MetaSel ('Just"_optFlatSplit"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optImportSorts"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True))) :*: (S1 ('MetaSel ('Just"_optLoadPrimitives"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True)) :*: S1 ('MetaSel ('Just"_optAllowExec"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)))) :*: ((S1 ('MetaSel ('Just"_optSaveMetas"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optShowIdentitySubstitutions"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False))) :*: (S1 ('MetaSel ('Just"_optKeepCoveringClauses"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: (S1 ('MetaSel ('Just"_optLargeIndices"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'False)) :*: S1 ('MetaSel ('Just"_optForcedArgumentRecursion"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithDefault 'True))))))))))
Warnings when parsing options.
Constructors
OptionRenamedName of option changed in a newer version of Agda.
WarningProblem WarningModeErrorA problem with setting or unsetting a warning.
Instances7Show, Generic, NFData, Pretty, EmbPrj, MonadWriter, …
Show OptionWarningDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseGeneric OptionWarningDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseNFData OptionWarningDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BasePretty OptionWarningDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseEmbPrj OptionWarningDefined in Agda-2.7.0.1 · Agda.TypeChecking.Serialise.Instances.Errors · orphanMonadWriter OptionWarnings OptMDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Basetype Rep OptionWarning = D1 ('MetaDataDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Base"OptionWarning"
"Agda.Interaction.Options.Base"
"Agda-2.7.0.1-DbbZpETDDF1KkwuzEZvfn8"
'False) (C1 ('MetaCons"OptionRenamed"
'PrefixI 'True) (S1 ('MetaSel ('Just"oldOptionName"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just"newOptionName"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)) :+: C1 ('MetaCons"WarningProblem"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WarningModeError)))
The options parse monad OptM collects warnings that are not discarded when a fatal error occurrs
Instances5Monad, Functor, Applicative, MonadError, MonadWriter
Monad OptMDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseFunctor OptMDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseApplicative OptMDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseMonadError OptionError OptMDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseMonadWriter OptionWarnings OptMDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Base
Options --version and --numeric-version (last wins).
Constructors
PrintAgdaVersionPrint Agda version information and exit.
PrintAgdaNumericVersionPrint Agda version number and exit.
Instances4Show, Generic, NFData, Rep
Show PrintAgdaVersionDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseGeneric PrintAgdaVersionDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseNFData PrintAgdaVersionDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Basetype Rep PrintAgdaVersion = D1 ('MetaDataDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Base"PrintAgdaVersion"
"Agda.Interaction.Options.Base"
"Agda-2.7.0.1-DbbZpETDDF1KkwuzEZvfn8"
'False) (C1 ('MetaCons"PrintAgdaVersion"
'PrefixI 'False) U1 :+: C1 ('MetaCons"PrintAgdaNumericVersion"
'PrefixI 'False) U1)
Instances4Show, Generic, NFData, Rep
Show DiagnosticsColoursDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseGeneric DiagnosticsColoursDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseNFData DiagnosticsColoursDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Basetype Rep DiagnosticsColours = D1 ('MetaDataDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Base"DiagnosticsColours"
"Agda.Interaction.Options.Base"
"Agda-2.7.0.1-DbbZpETDDF1KkwuzEZvfn8"
'False) (C1 ('MetaCons"AlwaysColour"
'PrefixI 'False) U1 :+: (C1 ('MetaCons"NeverColour"
'PrefixI 'False) U1 :+: C1 ('MetaCons"AutoColour"
'PrefixI 'False) U1))
Checks that the given options are consistent. Also makes adjustments (e.g. when one option implies another).
parsePragmaOptions :: OptionsPragmaPragma options.
-> CommandLineOptionsCommand-line options which should be updated.
-> OptM PragmaOptions
Parse options from an options pragma.
Parse options for a plugin.
Removes RTS options from a list of options.
Used for printing usage info. Does not include the dead options.
Check for unsafe pragmas. Gives a list of used unsafe flags.
recheckBecausePragmaOptionsChanged :: PragmaOptionsThe options that were used to check the file.
-> PragmaOptionsThe options that are currently in effect.
-> Bool
This function returns True if the file should be rechecked.
Infective or coinfective?
Instances6Eq, Show, Generic, NFData, EmbPrj, Rep
Eq InfectiveCoinfectiveDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseShow InfectiveCoinfectiveDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseGeneric InfectiveCoinfectiveDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseNFData InfectiveCoinfectiveDefined in Agda-2.7.0.1 · Agda.Interaction.Options.BaseEmbPrj InfectiveCoinfectiveDefined in Agda-2.7.0.1 · Agda.TypeChecking.Serialise.Instances.Errors · orphantype Rep InfectiveCoinfective = D1 ('MetaDataDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Base"InfectiveCoinfective"
"Agda.Interaction.Options.Base"
"Agda-2.7.0.1-DbbZpETDDF1KkwuzEZvfn8"
'False) (C1 ('MetaCons"Infective"
'PrefixI 'False) U1 :+: C1 ('MetaCons"Coinfective"
'PrefixI 'False) U1)
Descriptions of infective and coinfective options.
Constructors
ICOptionicOptionActive :: PragmaOptions -> BoolIs the option active?
icOptionDescription :: StringA description of the option (typically a flag that activates the option).
icOptionKind :: InfectiveCoinfectiveIs the option (roughly speaking) infective or coinfective?
icOptionOK :: PragmaOptions -> PragmaOptions -> BoolThis function returns True exactly when, from the perspective of the option in question, the options in the current module (the first argument) are compatible with the options in a given imported module (the second argument).
icOptionWarning :: TopLevelModuleName -> DocA warning message that should be used if this option is not used correctly. The given module name is the name of an imported module for which icOptionOK failed.
Infective and coinfective options.
Note that --cubical and --erased-cubical are "jointly
infective": if one of them is used in one module, then one or the
other must be used in all modules that depend on this module.
Constructors
ImpliesPragmaOption :: String -> Bool -> (PragmaOptions -> WithDefault a) -> String -> Bool -> (PragmaOptions -> WithDefault b) -> ImpliedPragmaOption
Map a function over the long options. Also removes the short options. Will be used to add the plugin name to the plugin options.
The usage info message. The argument is the program name (probably agda).
Command line options of previous versions of Agda. Should not be listed in the usage info, put parsed by GetOpt for good error messaging.
getOptSimple Simple interface for System.Console.GetOpt Could be moved to Agda.Utils.Options (does not exist yet)
optErasure is implied by optEraseRecordParameters. optErasure is also implied by an explicitly given `--erased-matches`.
optCohesion is implied by optFlatSplit.
optImportSorts requires optLoadPrimitives.
Methods
pragmaOptions :: m PragmaOptionsReturns the pragma options which are currently in effect.
commandLineOptions :: m CommandLineOptionsReturns the command line options which are currently in effect.
Instances20HasOptions, …
HasOptions ReplMDefined in Agda-2.7.0.1 · Agda.Interaction.CommandLineHasOptions IMDefined in Agda-2.7.0.1 · Agda.Interaction.MonadHasOptions AbsToConDefined in Agda-2.7.0.1 · Agda.Syntax.Translation.AbstractToConcreteHasOptions TerMDefined in Agda-2.7.0.1 · Agda.Termination.MonadHasOptions ForcedVariableCollection'Defined in Agda-2.7.0.1 · Agda.TypeChecking.ForcingHasOptions ReduceMDefined in Agda-2.7.0.1 · Agda.TypeChecking.Monad.BaseHasOptions RecPatMDefined in Agda-2.7.0.1 · Agda.TypeChecking.RecordPatternsHasOptions NLMDefined in Agda-2.7.0.1 · Agda.TypeChecking.Rewriting.NonLinMatchHasOptions m => HasOptions (PureConversionT m)Defined in Agda-2.7.0.1 · Agda.TypeChecking.Conversion.PureHasOptions m => HasOptions (BlockT m)Defined in Agda-2.7.0.1 · Agda.TypeChecking.Monad.BaseHasOptions m => HasOptions (NamesT m)Defined in Agda-2.7.0.1 · Agda.TypeChecking.NamesHasOptions m => HasOptions (ListT m)Defined in Agda-2.7.0.1 · Agda.Interaction.Options.HasOptionsHasOptions m => HasOptions (ChangeT m)Defined in Agda-2.7.0.1 · Agda.Interaction.Options.HasOptionsHasOptions m => HasOptions (MaybeT m)Defined in Agda-2.7.0.1 · Agda.Interaction.Options.HasOptionsMonadIO m => HasOptions (TCMT m)Defined in Agda-2.7.0.1 · Agda.TypeChecking.Monad.BaseHasOptions m => HasOptions (ExceptT e m)Defined in Agda-2.7.0.1 · Agda.Interaction.Options.HasOptionsHasOptions m => HasOptions (IdentityT m)Defined in Agda-2.7.0.1 · Agda.Interaction.Options.HasOptionsHasOptions m => HasOptions (ReaderT r m)Defined in Agda-2.7.0.1 · Agda.Interaction.Options.HasOptionsHasOptions m => HasOptions (StateT s m)Defined in Agda-2.7.0.1 · Agda.Interaction.Options.HasOptions(HasOptions m, Monoid w) => HasOptions (WriterT w m)Defined in Agda-2.7.0.1 · Agda.Interaction.Options.HasOptions