git.iko.soy/typeable/generic-arbitrary
on 403bfbc help sign in
4 files changed+4−16
since splitsnapshots
unifiedsplit
CHANGELOG.md−5 generic-arbitrary.cabal+2−1 src/Test/QuickCheck/Arbitrary/Generic.hs+1−9 test/RecursiveTest.hs+1−1
CHANGELOG.md−5
@@ -1,8 +1,3 @@
1−1.0.1.2
2−-------
3−
4−* Fix dependency bounds (including retroactively), and compilation with warnings.
5−
611.0.1.1
72-------
83
generic-arbitrary.cabal+2−1
@@ -1,5 +1,5 @@
11name: generic-arbitrary
2−version: 1.0.1.2
2+version: 1.0.1.1
33synopsis: Generic implementation for QuickCheck's Arbitrary
44description:
55 Generic implementations of methods of the 'Arbitrary' class from the
@@ -99,3 +99,4 @@ test-suite test
9999 -threaded
100100 -rtsopts
101101 "-with-rtsopts=-N -A64m -qb0 -n4m -T -I1"
102+ default-extensions: DeriveGeneric
src/Test/QuickCheck/Arbitrary/Generic.hs+1−9
@@ -1,10 +1,3 @@
1−#if __GLASGOW_HASKELL__ >= 806
2−{-# OPTIONS_GHC -Wno-star-is-type #-}
3−#endif
4−#if __GLASGOW_HASKELL__ >= 800
5−{-# OPTIONS_GHC -Wno-unticked-promoted-constructors #-}
6−#endif
7−
81{-|
92
103This module is a generic implementation of the 'arbitrary' method. Example
@@ -153,14 +146,13 @@ module Test.QuickCheck.Arbitrary.Generic
153146 ) where
154147
155148import Control.Applicative
149+import Data.Coerce (coerce)
156150import Data.Proxy
157151import Data.Type.Bool
158152import GHC.Generics as G
159153import GHC.TypeLits
160−import Prelude
161154import Test.QuickCheck as QC
162155#if MIN_VERSION_QuickCheck(2, 14, 0)
163−import Data.Coerce (coerce)
164156import Test.QuickCheck.Arbitrary (GSubterms, RecursivelyShrink)
165157
166158
test/RecursiveTest.hs+1−1
@@ -8,7 +8,7 @@
88
99module RecursiveTest where
1010
11−import Control.DeepSeq (NFData)
11+import Control.DeepSeq hiding (Unit)
1212import GHC.Generics (Generic)
1313import Test.QuickCheck
1414import Test.QuickCheck.Arbitrary.Generic