HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

ModuleAgda-2.8.0.2Haskell2010

Agda.Interaction.Options

Synopsis
  • 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)

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

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

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, …

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 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

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

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, …

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

Constructors

Instances4Show, Generic, NFData, Rep