HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleAgda-2.7.0.1Haskell2010

Agda.Interaction.Options

  • 18 types
  • 1 class
  • 158 values
  • PackageAgda-2.7.0.1
  • Exports177
  • LanguageHaskell2010
  • LicenceMIT
  • SourceBase.hs
typetype Flag opts = opts -> OptM opts
#

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

datadata CommandLineOptions
#

Constructors

Instances8Show, Generic, NFData, LensIncludePaths, LensPersistentVerbosity, LensPragmaOptions, …
datadata ArgDescr a
#

Describes whether an option takes an argument or not, and if so how the argument is injected into a value of type a.

Constructors

Instances1Functor
datadata OptDescr a
#

Each OptDescr describes a single option.

The arguments to Option are:

  • list of short option characters

  • list of long option strings (without "--")

  • argument descriptor

  • explanation of option for user

Constructors

Instances1Functor
datadata WarningMode
#

A WarningMode has two components: a set of warnings to be displayed and a flag stating whether warnings should be turned into fatal errors.

Instances6Eq, Show, Generic, NFData, EmbPrj, Rep
datadata UnicodeOrAscii
#

We want to know whether we are allowed to insert unicode characters or not.

Constructors

Instances10Bounded, Enum, Eq, Show, Generic, NFData, …
typetype Verbosity = Maybe (Trie VerboseKeyItem VerboseLevel)
#

Nothing is used if no verbosity options have been given, thus making it possible to handle the default case relatively quickly. Note that Nothing corresponds to a trie with verbosity level 1 for the empty path.

datadata ConfluenceCheck
#
Instances6Eq, Show, Generic, NFData, EmbPrj, Rep
datadata PragmaOptions
#

Options which can be set in a pragma.

Constructors

Instances9Eq, Show, Generic, NFData, LensPersistentVerbosity, LensSafeMode, …
datadata OptionWarning
#

Warnings when parsing options.

Constructors

Instances7Show, Generic, NFData, Pretty, EmbPrj, MonadWriter, …
newtypenewtype OptM a
#

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.Base
  • Functor OptMDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Base
  • Applicative OptMDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Base
  • MonadError OptionError OptMDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Base
  • MonadWriter OptionWarnings OptMDefined in Agda-2.7.0.1 · Agda.Interaction.Options.Base
datadata PrintAgdaVersion
#

Options --version and --numeric-version (last wins).

Constructors

Instances4Show, Generic, NFData, Rep
datadata DiagnosticsColours
#
Instances4Show, Generic, NFData, Rep
datadata InfectiveCoinfective
#

Infective or coinfective?

Instances6Eq, Show, Generic, NFData, EmbPrj, Rep

Descriptions of infective and coinfective options.

Constructors

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.

valuemapFlag :: (String -> String) -> OptDescr a -> OptDescr a
#

Map a function over the long options. Also removes the short options. Will be used to add the plugin name to the plugin options.

valuegetOptSimple
  1. :: [String]

    command line argument words

  2. -> [OptDescr (Flag opts)]

    options handlers

  3. -> (String -> Flag opts)

    handler of non-options (only one is allowed)

  4. -> Flag opts

    combined opts data structure transformer

#

Simple interface for System.Console.GetOpt Could be moved to Agda.Utils.Options (does not exist yet)

classclass (Functor m, Applicative m, Monad m) => HasOptions (m :: Type -> Type) where
#

Methods

Instances20HasOptions, …