Moduleopt-env-conf-0.15.0.3Haskell2010
OptEnvConf.Reader
Synopsis
- newtype Reader
- value str
- value auto
- value exists
- value viaStringCodec
- value maybeReader
- value eitherReader
- value commaSeparated
- value commaSeparatedList
- value commaSeparatedSet
- value runReader
- value renderCommaSeparated
- value parseCommaSeparated
- Packageopt-env-conf-0.15.0.3
- Exports13
- LanguageHaskell2010
- LicenceLGPL-3.0-only
- SourceReader.hs
Common readers
Always return True
exists = Reader $ const $ pure TrueConstructing your own reader
Comma-separated readers
Turn a reader into one that parses comma separated values with that reader.
Like commaSeparated but uses a list type.
Note that this will never parse the empty list, so prefer commaSeparated if you want a more accurately typed function.
Like commaSeparated but uses a set type.
Note that this will never parse the empty list, so prefer commaSeparated if you want a more accurately typed function.
Note also that this function throws away any ordering information and ignores any duplicate values.
Internal
Separate by commas and escape commas in values
Parse comma separated string, ignore escaped commas