Safe Haskell | None |
---|---|
Language | Haskell2010 |
- parseConfigSpec :: MonadThrow m => Text -> m (ConfigSpec ())
- readConfigSpec :: Text -> IO (ConfigSpec ())
Documentation
:: MonadThrow m | |
=> Text | Text to be parsed |
-> m (ConfigSpec ()) | returns ConfigSpec |
Parses a text input into a ConfigSpec
, input can be JSON or YAML (if cabal
flag is set).
:: Text | Filepath where contents are going to be read from and parsed |
-> IO (ConfigSpec ()) | returns ConfigSpec |
Reads contents of a file and parses into a ConfigSpec
, file contents can be
either JSON or YAML (if cabal flag is set).