@@ -5,7 +5,7 @@ module Test.QuickCheck.Laws
5
5
6
6
import Prelude
7
7
import Control.Monad.Eff.Console (log )
8
- import Data.Enum (class BoundedEnum )
8
+ import Data.Enum (class Enum , class BoundedEnum )
9
9
import Data.Monoid (class Monoid )
10
10
import Test.QuickCheck (QC )
11
11
import Test.QuickCheck.Arbitrary (class Arbitrary , class Coarbitrary )
@@ -19,6 +19,7 @@ newtype A = A Ordering
19
19
20
20
derive newtype instance arbitraryA ∷ Arbitrary A
21
21
derive newtype instance boundedA ∷ Bounded A
22
+ derive newtype instance enumA :: Enum A
22
23
derive newtype instance boundedEnumA :: BoundedEnum A
23
24
derive newtype instance coarbitraryA ∷ Coarbitrary A
24
25
derive newtype instance eqA ∷ Eq A
@@ -30,43 +31,46 @@ newtype B = B Ordering
30
31
31
32
derive newtype instance arbitraryB ∷ Arbitrary B
32
33
derive newtype instance boundedB ∷ Bounded B
34
+ derive newtype instance enumB :: Enum B
33
35
derive newtype instance boundedEnumB :: BoundedEnum B
34
36
derive newtype instance coarbitraryB ∷ Coarbitrary B
35
37
derive newtype instance eqB ∷ Eq B
36
38
derive newtype instance ordB ∷ Ord B
37
39
derive newtype instance semigroupB ∷ Semigroup B
38
- instance monoidB ∷ Monoid B where mempty = B EQ
40
+ instance monoidB ∷ Monoid B where mempty = B EQ
39
41
40
42
newtype C = C Ordering
41
43
42
44
derive newtype instance arbitraryC ∷ Arbitrary C
43
45
derive newtype instance boundedC ∷ Bounded C
46
+ derive newtype instance enumC :: Enum C
44
47
derive newtype instance boundedEnumC :: BoundedEnum C
45
48
derive newtype instance coarbitraryC ∷ Coarbitrary C
46
49
derive newtype instance eqC ∷ Eq C
47
50
derive newtype instance ordC ∷ Ord C
48
51
derive newtype instance semigroupC ∷ Semigroup C
49
52
instance monoidC ∷ Monoid C where mempty = C EQ
50
-
53
+
51
54
newtype D = D Ordering
52
55
53
56
derive newtype instance arbitraryD ∷ Arbitrary D
54
57
derive newtype instance boundedD ∷ Bounded D
58
+ derive newtype instance enumD :: Enum D
55
59
derive newtype instance boundedEnumD :: BoundedEnum D
56
60
derive newtype instance coarbitraryD ∷ Coarbitrary D
57
61
derive newtype instance eqD ∷ Eq D
58
62
derive newtype instance ordD ∷ Ord D
59
63
derive newtype instance semigroupD ∷ Semigroup D
60
64
instance monoidD ∷ Monoid D where mempty = D EQ
61
-
65
+
62
66
newtype E = E Ordering
63
67
64
68
derive newtype instance arbitraryE ∷ Arbitrary E
65
69
derive newtype instance boundedE ∷ Bounded E
70
+ derive newtype instance enumE :: Enum E
66
71
derive newtype instance boundedEnumE :: BoundedEnum E
67
72
derive newtype instance coarbitraryE ∷ Coarbitrary E
68
73
derive newtype instance eqE ∷ Eq E
69
74
derive newtype instance ordE ∷ Ord E
70
75
derive newtype instance semigroupE ∷ Semigroup E
71
- instance monoidE ∷ Monoid E where mempty = E EQ
72
-
76
+ instance monoidE ∷ Monoid E where mempty = E EQ
0 commit comments