Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype YAMLSource f = YAMLSource (f ConfigFile)
- data YAMLSourceVal
- runYAMLSource :: forall a f. (FunctorB a, FromJSON (a Maybe), Applicative f) => ByteString -> a (Compose Opt f) -> a (Compose SourceRunResult f)
Documentation
newtype YAMLSource f Source #
Source that enables a parser to read options from a YAML file.
YAMLSource (f ConfigFile) |
Instances
data YAMLSourceVal Source #
The result of reading a YAML file. YAMLSourceNotRequired
is used when
the user has specified defaultVal NoConfigFile
. It holds the contents of
the YAML file as a ByteString
.
Instances
(FromJSON (a Maybe), FunctorB a) => RunSource YAMLSourceVal a Source # | |
Defined in Options.Harg.Sources.YAML runSource :: Applicative f => YAMLSourceVal -> a (Compose Opt f) -> [a (Compose SourceRunResult f)] Source # |
runYAMLSource :: forall a f. (FunctorB a, FromJSON (a Maybe), Applicative f) => ByteString -> a (Compose Opt f) -> a (Compose SourceRunResult f) Source #