HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

ModuleAgda-2.8.0.2Haskell2010

Agda.Interaction.Options

  • 31 types
  • 2 classes
  • 161 values
  • PackageAgda-2.8.0.2
  • Exports194
  • LanguageHaskell2010
  • LicenceMIT
  • SourceBase.hs
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 Agda.Utils.GetOpt Could be moved to Agda.Utils.Options (does not exist yet)

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.

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

Descriptions of infective and coinfective options.

Constructors

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

Warnings when parsing options.

Constructors

Instances7Show, Generic, NFData, Pretty, EmbPrj, MonadWriter, …
datadata CommandLineOptions
#

Constructors

Instances8Show, Generic, NFData, LensPragmaOptions, LensIncludePaths, LensPersistentVerbosity, …
datadata ConfluenceCheck
#
Instances6Eq, Show, Generic, NFData, EmbPrj, Rep
datadata DiagnosticsColours
#
Instances4Show, Generic, NFData, Rep
datadata EmacsModeCommand
#

If several --emacs-mode commands are given, they are executed in the order as given in this datatype.

Constructors

Instances6Eq, Ord, Show, Generic, NFData, Rep
datadata InfectiveCoinfective
#

Infective or coinfective?

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

Options which can be set in a pragma.

Constructors

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

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

Constructors

Instances4Show, Generic, NFData, Rep
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, …
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
classclass (Functor m, Applicative m, Monad m) => HasOptions (m :: Type -> Type) where
#

Methods

Instances19HasOptions, …
datadata CommandLineOptions
#

Constructors

Instances8Show, Generic, NFData, LensPragmaOptions, LensIncludePaths, LensPersistentVerbosity, …
datadata ConfluenceCheck
#
Instances6Eq, Show, Generic, NFData, EmbPrj, Rep
datadata DiagnosticsColours
#
Instances4Show, Generic, NFData, Rep
datadata EmacsModeCommand
#

If several --emacs-mode commands are given, they are executed in the order as given in this datatype.

Constructors

Instances6Eq, Ord, Show, Generic, NFData, Rep
datadata InfectiveCoinfective
#

Infective or coinfective?

Instances6Eq, Show, Generic, NFData, EmbPrj, Rep
classclass LensPragmaOptions a where
#
Instances3LensPragmaOptions
datadata PragmaOptions
#

Options which can be set in a pragma.

Constructors

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

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

Constructors

Instances4Show, Generic, NFData, Rep