@@ -12,9 +12,9 @@ module Main where
12 test1 :: forall n. (Num n) => n -> n -> (n -> n -> n) -> n
12 test1 :: forall n. (Num n) => n -> n -> (n -> n -> n) -> n
13 test1 x y z = x * y + z x y
13 test1 x y z = x * y + z x y
15− test2 = (\x -> x.foo false) { foo : \_ -> 1 }
15+ test2 = (\x -> x.foo false) { foo : \_ -> 1.0 }
17− test3 = (\x y -> x)(1 + 2 * (1 + 2)) (true && (false || false))
17+ test3 = (\x y -> x)(1.0 + 2.0 * (1.0 + 2.0)) (true && (false || false))
19 k = \x -> \y -> x
19 k = \x -> \y -> x
@@ -25,9 +25,9 @@ module Main where
25 (%%) :: Number -> Number -> Number
25 (%%) :: Number -> Number -> Number
26 (%%) x y = x * y + y
26 (%%) x y = x * y + y
28− test5 = 1 %% 2 %% 3
28+ test5 = 1.0 %% 2.0 %% 3.0
30− test6 = ((\x -> x) `k` 2) 3
30+ test6 = ((\x -> x) `k` 2.0) 3.0
32 (<+>) :: String -> String -> String
32 (<+>) :: String -> String -> String
33 (<+>) = \s1 s2 -> s1 ++ s2
33 (<+>) = \s1 s2 -> s1 ++ s2
@@ -49,7 +49,7 @@ module Main where
49 (...) :: forall a. [a] -> [a] -> [a]
49 (...) :: forall a. [a] -> [a] -> [a]
50 (...) = \as -> \bs -> as
50 (...) = \as -> \bs -> as
52− test11 = [1, 2, 3] ... [4, 5, 6]
52+ test11 = [1.0, 2.0, 0.0] ... [4.0, 5.0, 6.0]
54 test12 (<%>) a b = a <%> b
54 test12 (<%>) a b = a <%> b
@@ -62,21 +62,21 @@ module Main where
62 test15 a b = const false $ a `test14` b
62 test15 a b = const false $ a `test14` b
64 test17 :: Number
64 test17 :: Number
65− test17 = negate (-1)
65+ test17 = negate (-1.0)
67 test18 :: Number
67 test18 :: Number
68− test18 = negate $ negate 1
68+ test18 = negate $ negate 1.0
70 test19 :: Number
70 test19 :: Number
71− test19 = negate $ negate (-1)
71+ test19 = negate $ negate (-1.0)
73 test20 :: Number
73 test20 :: Number
74− test20 = 1 @ 2
74+ test20 = 1.0 @ 2.0
76 (@) x y = x + y * y
76 (@) x y = x + y * y
79− let t1 = test1 1 2 (\x y -> x + y)
79+ let t1 = test1 1.0 2.0 (\x y -> x + y)
80 let t2 = test2
80 let t2 = test2
81 let t3 = test3
81 let t3 = test3
82 let t4 = test4
82 let t4 = test4
@@ -87,10 +87,10 @@ module Main where
87 let t9 = test9
87 let t9 = test9
88 let t10 = test10
88 let t10 = test10
89 let t11 = test11
89 let t11 = test11
90− let t12 = test12 k 1 2
90+ let t12 = test12 k 1.0 2.0
91− let t13 = test13 k 1 2
91+ let t13 = test13 k 1.0 2.0
92− let t14 = test14 1 2
92+ let t14 = test14 1.0 2.0
93− let t15 = test15 1 2
93+ let t15 = test15 1.0 2.0
94 let t17 = test17
94 let t17 = test17
95 let t18 = test18
95 let t18 = test18
96 let t19 = test19
96 let t19 = test19