Hoogle Search

Within LTS Haskell 24.68 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. settingSetDoc :: Setting a -> Maybe SetDoc

    opt-env-conf OptEnvConf.Doc

    No documentation available.

  2. setting :: HasCallStack => [Builder a] -> Parser a

    opt-env-conf OptEnvConf.Parser

    settings are the building blocks of Parsers. setting lets you put together different builders to define what to parse. Here are some common examples:

    • Argument
      setting [ help "Document your argument" , reader str
      -- The argument is a string , argument ] :: Parser String 
    • Switch
      setting [ help "Document your switch" , switch True --
      The value of the switch when activated , long foo -- "--foo"
      , short f -- "-f" , value False -- The default value of the
      switch ] :: Parser Bool 
    • Option
      setting [ help "Document your option" , reader str --
      The argument is a string , long foo -- "--foo" , short
      f -- "-f" , option ] :: Parser String 
    • Environment Variable
      setting [ help "Document your environment
      variable" , reader str -- The argument is a string , env
      FOO_BAR ] :: Parser String 
    • Configuration Value
      setting [ help "Document your
      configuration value" , conf "foo-bar" ] :: Parser String 
    • Some combination
      setting [ help "Document your configuration
      value" , conf "foo-bar" ] :: Parser String 
      Note that parsing is always tried in this order when using a combined setting:
      1. Argument
      2. Switch
      3. Option
      4. Environment variable
      5. Configuration value
      (Hence the name of the package.)

  3. settingsParser :: HasParser a => Parser a

    opt-env-conf OptEnvConf.Parser

    No documentation available.

  4. settingCompleter :: Setting a -> !Maybe Completer

    opt-env-conf OptEnvConf.Setting

    No documentation available.

  5. settingConfigVals :: Setting a -> !Maybe (NonEmpty (ConfigValSetting a))

    opt-env-conf OptEnvConf.Setting

    Which and how to parse config values

  6. settingDasheds :: Setting a -> ![Dashed]

    opt-env-conf OptEnvConf.Setting

    Which dashed values are required for parsing No dashed values means this is an argument.

  7. settingDefaultValue :: Setting a -> !Maybe (a, String)

    opt-env-conf OptEnvConf.Setting

    Default value, if none of the above find the setting.

  8. settingEnvVars :: Setting a -> !Maybe (NonEmpty String)

    opt-env-conf OptEnvConf.Setting

    Which env vars can be read.

  9. settingExamples :: Setting a -> ![String]

    opt-env-conf OptEnvConf.Setting

    Example values

  10. settingHelp :: Setting a -> !Maybe String

    opt-env-conf OptEnvConf.Setting

    No documentation available.

Page 829 of many | Previous | Next