Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- readConfigFile :: (YamlSchema a, FromJSON a) => Path r File -> IO (Maybe a)
- readFirstConfigFile :: forall a r. (FromJSON a, YamlSchema a) => [Path r File] -> IO (Maybe a)
Documentation
readConfigFile :: (YamlSchema a, FromJSON a) => Path r File -> IO (Maybe a) Source #
Helper function to read a config file for a type in YamlSchema
readFirstConfigFile :: forall a r. (FromJSON a, YamlSchema a) => [Path r File] -> IO (Maybe a) Source #
Helper function to read the first in a list of config files