HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleoptparse-applicative-0.18.1.0Haskell98

Options.Applicative.Types

  • 26 types
  • 17 values
datadata ParserInfo a
#

A full description for a runnable Parser for a program.

Constructors

Instances1Functor
  • Functor ParserInfoDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
datadata ParserPrefs
#

Global preferences for a top-level Parser.

Constructors

Instances2Eq, Show
  • Eq ParserPrefsDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
  • Show ParserPrefsDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
datadata OptName
#
Instances3Eq, Ord, Show
  • Eq OptNameDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
  • Ord OptNameDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
  • Show OptNameDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
datadata OptProperties
#

Specification for an individual parser option.

Constructors

Instances1Show
  • Show OptPropertiesDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
datadata OptVisibility
#

Visibility of an option in the help text.

Constructors

  • Internal

    does not appear in the help text at all

  • Hidden

    only visible in the full description

  • Visible

    visible both in the full and brief descriptions

Instances3Eq, Ord, Show
  • Eq OptVisibilityDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
  • Ord OptVisibilityDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
  • Show OptVisibilityDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
newtypenewtype ReadM a
#

A newtype over 'ReaderT String Except', used by option readers.

Instances6Monad, Functor, MonadFail, Applicative, Alternative, MonadPlus
  • Monad ReadMDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
  • Functor ReadMDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
  • MonadFail ReadMDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
  • Applicative ReadMDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
  • Alternative ReadMDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
  • MonadPlus ReadMDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
datadata Parser a
#

A Parser a is an option parser returning a value of type a.

Constructors

Instances3Functor, Applicative, Alternative
  • Functor ParserDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
  • Applicative ParserDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
  • Alternative ParserDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
datadata ParserResult a
#
Instances4Monad, Functor, Applicative, Show
datadata ArgPolicy
#

Policy for how to handle options within the parse

Constructors

  • Intersperse

    The default policy, options and arguments can be interspersed. A -- option can be passed to ensure all following commands are treated as arguments.

  • NoIntersperse

    Options must all come before arguments, once a single positional argument or subcommand is parsed, all remaining arguments are treated as positionals. A -- option can be passed if the first positional one needs starts with -.

  • AllPositionals

    No options are parsed at all, all arguments are treated as positionals. Is the policy used after -- is encountered.

  • ForwardOptions

    Options and arguments can be interspersed, but if a given option is not found, it is treated as a positional argument. This is sometimes useful if one is passing through most options to another tool, but are supplying just a few of their own options.

Instances3Eq, Ord, Show
  • Eq ArgPolicyDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
  • Ord ArgPolicyDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
  • Show ArgPolicyDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Types
datadata ParserHelp
#
Instances3Show, Semigroup, Monoid
  • Show ParserHelpDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Help.Types
  • Semigroup ParserHelpDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Help.Types
  • Monoid ParserHelpDefined in optparse-applicative-0.18.1.0 · Options.Applicative.Help.Types
datadata Context
#

Subparser context, containing the name of the subparser and its parser info. Used by parserFailure to display relevant usage information when parsing inside a subparser fails.

Constructors