| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Options.Harg.Sources.DefaultStr
Synopsis
- data DefaultStrSource (f :: Type -> Type) = DefaultStrSource
- data DefaultStrSourceVal = DefaultStrSourceVal
- runDefaultStrSource :: forall a f. (FunctorB a, Applicative f) => a (Compose Opt f) -> a (Compose SourceRunResult f)
Documentation
data DefaultStrSource (f :: Type -> Type) Source #
Source that enables a parser to read options from defaults that are provided as strings (unparsed).
Constructors
| DefaultStrSource |
Instances
data DefaultStrSourceVal Source #
Value of DefaultStrSource is a dummy value, as the default string option can
be found inside the Opt (_optDefaultStr).
Constructors
| DefaultStrSourceVal |
Instances
| FunctorB a => RunSource DefaultStrSourceVal a Source # | |
Defined in Options.Harg.Sources.DefaultStr Methods runSource :: Applicative f => DefaultStrSourceVal -> a (Compose Opt f) -> [a (Compose SourceRunResult f)] Source # | |
runDefaultStrSource :: forall a f. (FunctorB a, Applicative f) => a (Compose Opt f) -> a (Compose SourceRunResult f) Source #