cfg 0.0.2.2 → 0.0.2.3
raw patch · 3 files changed
+17/−16 lines, 3 filesdep +hspec-apidep ~hedgehogdep ~hspecdep ~hspec-corePVP ok
version bump matches the API change (PVP)
Dependencies added: hspec-api
Dependency ranges changed: hedgehog, hspec, hspec-core, hspec-discover, hspec-expectations, hspec-hedgehog, megaparsec
API changes (from Hackage documentation)
Files
- cfg.cabal +11/−10
- test/Cfg/EnvSpec.hs +0/−1
- test/Main.hs +6/−5
cfg.cabal view
@@ -1,12 +1,12 @@ cabal-version: 3.0 name: cfg-version: 0.0.2.2+version: 0.0.2.3 synopsis: Type directed application configuration parsing and accessors description:- `cfg` is a library that provides Generic machinery for generating configuration accessors, - and parsers from Haskell types. This package is intended to be used to build out additional + `cfg` is a library that provides Generic machinery for generating configuration accessors,+ and parsers from Haskell types. This package is intended to be used to build out additional "sources" for configuration access, the environment source is provided in this package as a default. category: Configuration@@ -73,7 +73,7 @@ build-depends: , bytestring >=0.11 && <0.13 , errors >=2.0.0 && <2.4- , megaparsec >=9.0.0 && <9.7+ , megaparsec >=9.0.0 && <10.0 , vector >=0.12.0 && <0.14 -- cabal-fmt: expand src@@ -118,12 +118,13 @@ build-depends: , cfg- , hedgehog >=1.1 && <1.5- , hspec >=2.9 && <2.12- , hspec-core >=2.9 && <2.12- , hspec-discover >=2.9 && <2.12- , hspec-expectations >=0.7.0 && <0.9- , hspec-hedgehog >=0.0.1 && <0.2+ , hedgehog >=1.1 && <2.0+ , hspec >=2.9 && <2.13+ , hspec-api >=2.9 && <2.13+ , hspec-core >=2.9 && <2.13+ , hspec-discover >=2.9 && <2.13+ , hspec-expectations >=0.7.0 && <1.0+ , hspec-hedgehog >=0.0.1 && <0.4 test-suite documentation import: common-opts
test/Cfg/EnvSpec.hs view
@@ -6,7 +6,6 @@ import KeyTree import System.Environment (setEnv, unsetEnv) import Test.Hspec-import Test.Hspec.Core.Spec (sequential) spec :: Spec spec = around
test/Main.hs view
@@ -4,8 +4,8 @@ import Spec qualified import System.Environment (lookupEnv) import Test.Hspec (parallel)+import Test.Hspec.Api.Formatters.V3 (specdoc, useFormatter) import Test.Hspec.Core.Runner (Config (..))-import Test.Hspec.Formatters (specdoc) import Test.Hspec.Runner as TR (defaultConfig, hspecWith) import Text.Read (readMaybe) @@ -17,8 +17,9 @@ maxResources = fromMaybe 8 (mText >>= readMaybe) let cfg =- TR.defaultConfig- { configConcurrentJobs = Just maxResources- , configFormatter = Just specdoc- }+ useFormatter+ ("specdoc", specdoc)+ TR.defaultConfig+ { configConcurrentJobs = Just maxResources+ } hspecWith cfg (parallel Spec.spec)