packages feed

integer-conversion 0.1 → 0.1.0.1

raw patch · 2 files changed

+27/−14 lines, 2 filesdep −quickcheck-instancesdep ~basedep ~bytestringdep ~primitivePVP ok

version bump matches the API change (PVP)

Dependencies removed: quickcheck-instances

Dependency ranges changed: base, bytestring, primitive, tasty, text

API changes (from Hackage documentation)

Files

integer-conversion.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.2 name:               integer-conversion-version:            0.1+version:            0.1.0.1 synopsis:           Conversion from strings to Integer category:           Data description:@@ -25,8 +25,9 @@    || ==8.10.7    || ==9.0.2    || ==9.2.8-   || ==9.4.5-   || ==9.6.2+   || ==9.4.7+   || ==9.6.3+   || ==9.8.1  source-repository head   type:     git@@ -37,10 +38,10 @@   hs-source-dirs:   src   exposed-modules:  Data.Integer.Conversion   build-depends:-    , base        >=4.9.0.0   && <4.19-    , bytestring  ^>=0.10.8.1 || ^>=0.11.4.0+    , base        >=4.9.0.0   && <4.20+    , bytestring  ^>=0.10.8.1 || ^>=0.11.4.0 || ^>=0.12.0.2     , primitive   ^>=0.8.0.0-    , text        ^>=1.2.3.0  || ^>=2.0.1+    , text        ^>=1.2.3.0  || >=2.0.1     && <2.1        || ^>=2.1  test-suite integer-conversion-tests   default-language: Haskell2010@@ -55,10 +56,9 @@    -- test dependencies   build-depends:-    , QuickCheck            ^>=2.14.3-    , quickcheck-instances  ^>=0.3.29.1-    , tasty                 ^>=1.4.3-    , tasty-quickcheck      ^>=0.10.2+    , QuickCheck        ^>=2.14.3+    , tasty             ^>=1.4.3+    , tasty-quickcheck  ^>=0.10.2    other-modules:     Alternative
tests/integer-conversion-tests.hs view
@@ -1,9 +1,9 @@+{-# OPTIONS_GHC -Wno-orphans #-} module Main (main) where -import Test.QuickCheck           ((===))-import Test.QuickCheck.Instances ()-import Test.Tasty                (defaultMain, testGroup)-import Test.Tasty.QuickCheck     (testProperty, label)+import Test.QuickCheck       ((===))+import Test.Tasty            (defaultMain, testGroup)+import Test.Tasty.QuickCheck (Arbitrary (..), label, testProperty)  import qualified Data.ByteString as BS import qualified Data.Text       as T@@ -32,3 +32,16 @@     labelT t = label (if T.length t  >= 40 then "long" else "short")     labelB b = label (if BS.length b >= 40 then "long" else "short")     labelS s = label (if length s    >= 40 then "long" else "short")++-------------------------------------------------------------------------------+-- Orphans+-------------------------------------------------------------------------------++-- we could use quickcheck-instances,+-- but by defining these instances here we make adopting newer GHC smoother.++instance Arbitrary T.Text where+    arbitrary = fmap T.pack arbitrary++instance Arbitrary BS.ByteString where+    arbitrary = fmap BS.pack arbitrary