Skip to content

Commit

Permalink
Support building with QuickCheck-2.14.3
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGlScott committed Jun 4, 2023
1 parent 4bf25f2 commit 93e3454
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### next [????.??.??]
* Support building with `QuickCheck-2.14.3` in the test suite.

### 3.10.2 [2023.03.05]
* Allow building with GHC 9.6.
* Add `TextShow` instances for `SomeChar` (if building with `base-4.16` or
Expand Down
13 changes: 2 additions & 11 deletions tests/Instances/System/IO.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import Instances.Utils.GenericArbitrary (genericArbitrary)
import Prelude ()
import Prelude.Compat

import System.IO (BufferMode(..), IOMode(..), Newline(..), NewlineMode(..),
SeekMode(..), Handle, stdin, stdout, stderr)
import System.IO (BufferMode(..), IOMode(..), SeekMode(..), Handle,
stdin, stdout, stderr)

import Test.QuickCheck (Arbitrary(..), arbitraryBoundedEnum, oneof)

Expand Down Expand Up @@ -56,14 +56,5 @@ deriving instance Enum CodingFailureMode
instance Arbitrary CodingFailureMode where
arbitrary = arbitraryBoundedEnum

deriving instance Bounded Newline
deriving instance Enum Newline
instance Arbitrary Newline where
arbitrary = arbitraryBoundedEnum

instance Arbitrary NewlineMode where
arbitrary = genericArbitrary

deriving instance Generic HandlePosn
deriving instance Generic BufferMode
deriving instance Generic NewlineMode
2 changes: 1 addition & 1 deletion text-show.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ test-suite spec
, generic-deriving >= 1.14.1 && < 2
, ghc-prim
, hspec >= 2 && < 3
, QuickCheck >= 2.12 && < 2.15
, QuickCheck >= 2.14.3 && < 2.15
, quickcheck-instances >= 0.3.28 && < 0.4
, template-haskell >= 2.9 && < 2.21
, text >= 0.11.1 && < 2.1
Expand Down

0 comments on commit 93e3454

Please sign in to comment.