genvalidity-scientific 0.1.0.0 → 0.2.0.0
raw patch · 3 files changed
+59/−45 lines, 3 filesdep ~genvaliditydep ~validitydep ~validity-scientificPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: genvalidity, validity, validity-scientific
API changes (from Hackage documentation)
Files
- genvalidity-scientific.cabal +53/−42
- src/Data/GenValidity/Scientific.hs +4/−1
- test/Data/GenValidity/ScientificSpec.hs +2/−2
genvalidity-scientific.cabal view
@@ -1,48 +1,59 @@-name: genvalidity-scientific-version: 0.1.0.0-cabal-version: >=1.10-build-type: Simple-license: MIT-license-file: LICENSE-copyright: Copyright: (c) 2017 Tom Sydney Kerckhove-maintainer: syd.kerckhove@gmail.com-homepage: https://github.com/NorfairKing/validity#readme-synopsis: GenValidity support for Scientific-description:- Please see README.md-category: Testing-author: Tom Sydney Kerckhove+-- This file has been generated from package.yaml by hpack version 0.20.0.+--+-- see: https://github.com/sol/hpack+--+-- hash: 94311d149a170b38cd6784b78ae298c9fe399bca2719f99c014bef4f39c31eb1 +name: genvalidity-scientific+version: 0.2.0.0+synopsis: GenValidity support for Scientific+description: Please see README.md+category: Testing+homepage: https://github.com/NorfairKing/validity#readme+bug-reports: https://github.com/NorfairKing/validity/issues+author: Tom Sydney Kerckhove+maintainer: syd.kerckhove@gmail.com+copyright: Copyright: (c) 2017-2018 Tom Sydney Kerckhove+license: MIT+license-file: LICENSE+build-type: Simple+cabal-version: >= 1.10+ source-repository head- type: git- location: https://github.com/NorfairKing/validity+ type: git+ location: https://github.com/NorfairKing/validity library- exposed-modules:- Data.GenValidity.Scientific- build-depends:- base >=4.7 && <5,- QuickCheck -any,- genvalidity >=0.4 && <0.5,- scientific -any,- validity >=0.4 && <0.5,- validity-scientific >=0.1 && <0.2- default-language: Haskell2010- hs-source-dirs: src+ hs-source-dirs:+ src+ build-depends:+ QuickCheck+ , base >=4.7 && <5+ , genvalidity >=0.5 && <0.6+ , scientific+ , validity >=0.5 && <0.6+ , validity-scientific >=0.2 && <0.3+ exposed-modules:+ Data.GenValidity.Scientific+ other-modules:+ Paths_genvalidity_scientific+ default-language: Haskell2010 test-suite genvalidity-scientific-test- type: exitcode-stdio-1.0- main-is: Spec.hs- build-depends:- base -any,- QuickCheck -any,- genvalidity -any,- genvalidity-hspec -any,- genvalidity-scientific -any,- hspec -any,- scientific -any- default-language: Haskell2010- hs-source-dirs: test- other-modules:- Data.GenValidity.ScientificSpec- ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -fno-warn-name-shadowing+ type: exitcode-stdio-1.0+ main-is: Spec.hs+ hs-source-dirs:+ test+ ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -fno-warn-name-shadowing+ build-depends:+ QuickCheck+ , base+ , genvalidity+ , genvalidity-hspec+ , genvalidity-scientific+ , hspec+ , scientific+ other-modules:+ Data.GenValidity.ScientificSpec+ Paths_genvalidity_scientific+ default-language: Haskell2010
src/Data/GenValidity/Scientific.hs view
@@ -12,6 +12,9 @@ instance GenUnchecked Scientific where genUnchecked = scientific <$> genUnchecked <*> genUnchecked- shrinkUnchecked s = [scientific c e | (c, e) <- shrinkUnchecked (coefficient s, base10Exponent s)]+ shrinkUnchecked s =+ [ scientific c e+ | (c, e) <- shrinkUnchecked (coefficient s, base10Exponent s)+ ] instance GenValid Scientific
test/Data/GenValidity/ScientificSpec.hs view
@@ -13,5 +13,5 @@ spec :: Spec spec = describe "genValid" $- it "generates valid Scientific's" $- forAll (genValid :: Gen Scientific) isValid+ it "generates valid Scientific's" $+ forAll (genValid :: Gen Scientific) isValid