| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Data.Registry.Options.FieldConfiguration
Description
Configuration of fields from
field names given as singleton string types
For example in the `Parser "myField" MyType
myField is used to create an option name like --my-field (by default)
Synopsis
- data FieldConfiguration = FieldConfiguration {
- makeShortName :: Text -> Char
- makeLongName :: Text -> Text
- makeMetavar :: Text -> Text
- defaultFieldConfiguration :: FieldConfiguration
Documentation
data FieldConfiguration Source #
These options are used at runtime to take a field name and build its short/long name + metavar
Constructors
| FieldConfiguration | |
Fields
| |
defaultFieldConfiguration :: FieldConfiguration Source #
The default options are taking a Package1.Package2.camelCase name and - creating a short name = "c" - creating a long name = "camel-case" - creating a metavar = CAMELCASE