@@ -16,6 +16,7 @@ newtype TestUInt = TestUInt UInt
1616instance newtypeTestUInt :: Newtype TestUInt UInt
1717instance arbitraryTestUInt :: Arbitrary TestUInt where
1818 arbitrary = TestUInt <$> genUInt bottom (fromNumber 20000.0 )
19+
1920derive newtype instance boundedTestUInt :: Bounded TestUInt
2021derive newtype instance eqTestUInt :: Eq TestUInt
2122derive newtype instance ordTestUInt :: Ord TestUInt
@@ -27,7 +28,7 @@ derive newtype instance euclideanRingTestUInt :: EuclideanRing TestUInt
2728
2829main :: Effect Unit
2930main = do
30- let prxUInt = Proxy ∷ Proxy TestUInt
31+ let prxUInt = Proxy :: Proxy TestUInt
3132 Data .checkEq prxUInt
3233 Data .checkOrd prxUInt
3334 Data .checkSemiring prxUInt
@@ -40,14 +41,16 @@ main = do
4041
4142checkMulIsPrecise :: Effect Unit
4243checkMulIsPrecise = do
43- let onlyLowBits :: TestUInt -> TestUInt
44- onlyLowBits = over TestUInt $ and $ fromInt 0x1
44+ let
45+ onlyLowBits :: TestUInt -> TestUInt
46+ onlyLowBits = over TestUInt $ and $ fromInt 0x1
4547 quickCheck \lhs rhs ->
4648 onlyLowBits (lhs * rhs) === onlyLowBits lhs * onlyLowBits rhs
4749
4850mulRegression1 :: Effect Unit
4951mulRegression1 = do
50- let lhs = fromInt (-2047875787 )
51- rhs = fromInt (-1028477387 )
52- expected = fromInt 1364097529
52+ let
53+ lhs = fromInt (-2047875787 )
54+ rhs = fromInt (-1028477387 )
55+ expected = fromInt 1364097529
5356 quickCheck $ lhs * rhs === expected
0 commit comments