|
4 | 4 |
|
5 | 5 | ### Types
|
6 | 6 |
|
7 |
| - type QC a = forall eff. Eff (err :: Exception Prim.String, random :: Random, trace :: Trace | eff) a |
| 7 | + type QC a = forall eff. Eff (err :: Exception String, random :: Random, trace :: Trace | eff) a |
8 | 8 |
|
9 |
| - data Result where |
10 |
| - Success :: Result |
11 |
| - Failed :: Prim.String -> Result |
| 9 | + data Result where |
| 10 | + Success :: Result |
| 11 | + Failed :: String -> Result |
12 | 12 |
|
13 | 13 |
|
14 | 14 | ### Type Classes
|
|
52 | 52 |
|
53 | 53 | ### Values
|
54 | 54 |
|
55 |
| - (<?>) :: Prim.Boolean -> Prim.String -> Result |
| 55 | + (<?>) :: Boolean -> String -> Result |
56 | 56 |
|
57 |
| - quickCheck :: forall prop. (Testable prop) => prop -> QC { } |
| 57 | + quickCheck :: forall prop. (Testable prop) => prop -> QC Unit |
58 | 58 |
|
59 |
| - quickCheck' :: forall prop. (Testable prop) => Prim.Number -> prop -> QC { } |
| 59 | + quickCheck' :: forall prop. (Testable prop) => Number -> prop -> QC Unit |
60 | 60 |
|
61 |
| - quickCheckPure :: forall prop. (Testable prop) => Prim.Number -> Prim.Number -> prop -> [Result] |
| 61 | + quickCheckPure :: forall prop. (Testable prop) => Number -> Number -> prop -> [Result] |
62 | 62 |
|
63 | 63 | repeatable :: forall a b. (a -> Gen b) -> Gen (a -> b)
|
64 | 64 |
|
|
70 | 70 | data Gen a where
|
71 | 71 | Gen :: LCG -> { newSeed :: LCG, value :: a } -> Gen a
|
72 | 72 |
|
73 |
| - type LCG = Prim.Number |
| 73 | + type LCG = Number |
74 | 74 |
|
75 | 75 |
|
76 | 76 | ### Type Class Instances
|
|
90 | 90 |
|
91 | 91 | evalGen :: forall a. Gen a -> LCG -> a
|
92 | 92 |
|
93 |
| - float32ToInt32 :: Prim.Number -> Prim.Number |
| 93 | + float32ToInt32 :: Number -> Number |
94 | 94 |
|
95 |
| - lcgC :: Prim.Number |
| 95 | + lcgC :: Number |
96 | 96 |
|
97 |
| - lcgM :: Prim.Number |
| 97 | + lcgM :: Number |
98 | 98 |
|
99 |
| - lcgN :: Prim.Number |
| 99 | + lcgN :: Number |
100 | 100 |
|
101 |
| - lcgNext :: Prim.Number -> Prim.Number |
| 101 | + lcgNext :: Number -> Number |
102 | 102 |
|
103 |
| - lcgStep :: Gen Prim.Number |
| 103 | + lcgStep :: Gen Number |
104 | 104 |
|
105 |
| - perturbGen :: forall a. Prim.Number -> Gen a -> Gen a |
| 105 | + perturbGen :: forall a. Number -> Gen a -> Gen a |
106 | 106 |
|
107 |
| - randomSeed :: forall eff. Eff (random :: Random | eff) Prim.Number |
| 107 | + randomSeed :: forall eff. Eff (random :: Random | eff) Number |
108 | 108 |
|
109 | 109 | runGen :: forall a. Gen a -> LCG -> { newSeed :: LCG, value :: a }
|
110 | 110 |
|
111 |
| - uniform :: Gen Prim.Number |
| 111 | + uniform :: Gen Number |
0 commit comments