@@ -47,7 +47,7 @@ import Test.StrongCheck.Arbitrary (class Arbitrary, arbitrary, class Coarbitrary
4747import Test.StrongCheck.LCG (Seed , mkSeed ) as Exports
4848
4949-- | A type synonym for StrongCheck effects in Eff.
50- type SC eff a = Eff (console :: CONSOLE , random :: RANDOM , err :: EXCEPTION | eff ) a
50+ type SC eff a = Eff (console :: CONSOLE , random :: RANDOM , exception :: EXCEPTION | eff ) a
5151
5252-- | The result of a property test.
5353data Result = Success | Failed String
@@ -165,7 +165,7 @@ statCheckPure s freq prop = try 100
165165defState :: Seed -> GenState
166166defState s = (GenState {seed: s, size: 10 })
167167
168- check :: forall eff prop f . ( Testable prop , Foldable f ) => (prop -> f (Tuple Seed Result )) -> prop -> SC eff Unit
168+ check :: forall eff prop f . Testable prop => Foldable f => (prop -> f (Tuple Seed Result )) -> prop -> SC eff Unit
169169check f prop = do
170170 let results = f prop
171171 let successes = countSuccesses results
@@ -201,7 +201,7 @@ infix 1 annotate as <?>
201201
202202-- | Asserts that two values are equal, resulting in a `Failure` if they are
203203-- | not, with a message showing the values involved.
204- assertEq :: forall a . ( Eq a , Show a ) => a -> a -> Result
204+ assertEq :: forall a . Eq a => Show a => a -> a -> Result
205205assertEq a b = a == b <?> msg
206206 where
207207 msg = show a <> " /= " <> show b
@@ -210,7 +210,7 @@ infix 2 assertEq as ===
210210
211211-- | Asserts that two values are not equal, resulting in a `Failure` if they
212212-- | are, with a message showing the values involved.
213- assertNotEq :: forall a . ( Eq a , Show a ) => a -> a -> Result
213+ assertNotEq :: forall a . Eq a => Show a => a -> a -> Result
214214assertNotEq a b = a /= b <?> msg
215215 where
216216 msg = show a <> " == " <> show b
0 commit comments