| Safe Haskell | None |
|---|
Data.Yaml.Config
- data Config
- type Key = Text
- load :: FilePath -> IO Config
- keys :: Config -> [Key]
- lookupSubconfig :: Config -> Key -> Maybe Config
- subconfig :: Config -> Key -> IO Config
- lookup :: FromJSON a => Config -> Key -> Maybe a
- lookupDefault :: FromJSON a => Config -> Key -> a -> a
- require :: FromJSON a => Config -> Key -> IO a
Documentation
load :: FilePath -> IO ConfigSource
Find file in filesystem and try to load it as YAML config
May fail with KeyError
Subconfig wrapped into Maybe
Find subconfig
May fail with KeyError
Field value wrapped into Maybe (sub)config