yaml-config 0.2.3 → 0.3.0
raw patch · 2 files changed
+5/−4 lines, 2 filesdep ~yamlPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: yaml
API changes (from Hackage documentation)
Files
src/Data/Yaml/Config/Internal.hs view
@@ -31,6 +31,7 @@ import Data.Yaml (Object, FromJSON(parseJSON), parseMaybe) import qualified Data.HashMap.Strict as HashMap import qualified Data.Yaml as Yaml+import qualified Data.Yaml.Include as YamlInclude import Control.Failure -- | Config or field name@@ -67,7 +68,7 @@ -- >>> config <- load "example.yaml" -- load :: FilePath -> IO Config-load f = maybe err (return . Config []) =<< Yaml.decodeFile f+load f = maybe err (return . Config []) =<< YamlInclude.decodeFile f where err = error $ "Invalid config file " <> f <> "."
yaml-config.cabal view
@@ -1,5 +1,5 @@ Name: yaml-config-Version: 0.2.3+Version: 0.3.0 Synopsis: Configuration management Description: Configuration management License: MIT@@ -22,7 +22,7 @@ , deepseq >= 1.3 , unordered-containers >= 0.2.0 , text >= 0.11.0- , yaml >= 0.8.0+ , yaml >= 0.8.10 , failure >= 0.2.0 Exposed-modules: Data.Yaml.Config@@ -38,7 +38,7 @@ , deepseq >= 1.3 , unordered-containers >= 0.2.0 , text >= 0.11.0- , yaml >= 0.8.0+ , yaml >= 0.8.10 , failure >= 0.2.0 , hashable >= 1.2.0