diff options
Diffstat (limited to 'testdata/language-features')
26 files changed, 67 insertions, 75 deletions
diff --git a/testdata/language-features/basic-list/listcomp09.out b/testdata/language-features/basic-list/listcomp09.out index 27afb045..96351e61 100644 --- a/testdata/language-features/basic-list/listcomp09.out +++ b/testdata/language-features/basic-list/listcomp09.out | |||
@@ -1,7 +1,6 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | value1 | 2 | value1 |
3 | = _rhs | 3 | = _rhs (concatMap (\_ -> (\(a :: _) -> hlistNilCase _ "Hello" a) : []) []) |
4 | (concatMap (\_ -> (\(a :: _) -> hlistNilCase (_ :: _) "Hello" a) : []) []) | ||
5 | main is not found | 4 | main is not found |
6 | ------------ trace | 5 | ------------ trace |
7 | value1 :: Type => [() -> String] | 6 | value1 :: Type => [() -> String] |
diff --git a/testdata/language-features/basic-values/case01.out b/testdata/language-features/basic-values/case01.out index 75dc7af3..8b4334e6 100644 --- a/testdata/language-features/basic-values/case01.out +++ b/testdata/language-features/basic-values/case01.out | |||
@@ -1,9 +1,9 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | value1 = _rhs ((\(a :: _) -> hlistNilCase (_ :: _) HNil a) HNil) | 2 | value1 = _rhs ((\(a :: _) -> hlistNilCase _ HNil a) HNil) |
3 | value2 = _rhs ((\(a :: _) -> hlistNilCase (_ :: _) HNil a) HNil) | 3 | value2 = _rhs ((\(a :: _) -> hlistNilCase _ HNil a) HNil) |
4 | value3 = _rhs ((\(a :: _) -> hlistNilCase (_ :: _) HNil a) HNil) | 4 | value3 = _rhs ((\(a :: _) -> hlistNilCase _ HNil a) HNil) |
5 | value4 = _rhs ((\(a :: _) -> hlistNilCase (_ :: _) HNil a) HNil) | 5 | value4 = _rhs ((\(a :: _) -> hlistNilCase _ HNil a) HNil) |
6 | value5 = _rhs ((\(a :: _) -> hlistNilCase (_ :: _) HNil a) HNil) | 6 | value5 = _rhs ((\(a :: _) -> hlistNilCase _ HNil a) HNil) |
7 | value6 = _rhs ((\_ -> HNil) HNil) | 7 | value6 = _rhs ((\_ -> HNil) HNil) |
8 | main is not found | 8 | main is not found |
9 | ------------ trace | 9 | ------------ trace |
diff --git a/testdata/language-features/basic-values/case02.out b/testdata/language-features/basic-values/case02.out index c762c3fe..a5f57070 100644 --- a/testdata/language-features/basic-values/case02.out +++ b/testdata/language-features/basic-values/case02.out | |||
@@ -1,12 +1,12 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | value1 | 2 | value1 |
3 | = _rhs | 3 | = _rhs |
4 | ((\(a :: _) -> case'Bool (\_ -> _ :: _) HNil HNil (fromInt 1 == a)) (fromInt 1)) | 4 | ((\(a :: _) -> case'Bool (\_ -> _) HNil HNil (fromInt 1 == a)) (fromInt 1)) |
5 | value2 | 5 | value2 |
6 | = _rhs | 6 | = _rhs |
7 | ((\(a :: _) -> case'Bool | 7 | ((\(a :: _) -> case'Bool |
8 | (\_ -> _ :: _) | 8 | (\_ -> _) |
9 | (case'Bool (\_ -> _ :: _) "_" "2" (fromInt 2 == a)) | 9 | (case'Bool (\_ -> _) "_" "2" (fromInt 2 == a)) |
10 | "1" | 10 | "1" |
11 | (fromInt 1 == a)) | 11 | (fromInt 1 == a)) |
12 | (fromInt 2)) | 12 | (fromInt 2)) |
diff --git a/testdata/language-features/basic-values/case05.out b/testdata/language-features/basic-values/case05.out index 5021dfc3..e099d30d 100644 --- a/testdata/language-features/basic-values/case05.out +++ b/testdata/language-features/basic-values/case05.out | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | value | 2 | value |
3 | = \(a :: _) -> _rhs | 3 | = \(a :: _) -> _rhs |
4 | ((\(b :: _) -> case'Bool (\_ -> _ :: _) undefined '1' (fromInt 1 == b)) a) | 4 | ((\(b :: _) -> case'Bool (\_ -> _) undefined '1' (fromInt 1 == b)) a) |
5 | main is not found | 5 | main is not found |
6 | ------------ trace | 6 | ------------ trace |
7 | value :: forall a . (Eq a, Num a) => a -> Char | 7 | value :: forall a . (Eq a, Num a) => a -> Char |
diff --git a/testdata/language-features/basic-values/case06.out b/testdata/language-features/basic-values/case06.out index ca1b9d5e..aaeff605 100644 --- a/testdata/language-features/basic-values/case06.out +++ b/testdata/language-features/basic-values/case06.out | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | value | 2 | value |
3 | = \(a :: _) -> _rhs | 3 | = \(a :: _) -> _rhs |
4 | ((\(b :: _) -> case'Bool (\_ -> _ :: _) '_' '1' (fromInt 1 == b)) a) | 4 | ((\(b :: _) -> case'Bool (\_ -> _) '_' '1' (fromInt 1 == b)) a) |
5 | main is not found | 5 | main is not found |
6 | ------------ trace | 6 | ------------ trace |
7 | value :: forall a . (Eq a, Num a) => a -> Char | 7 | value :: forall a . (Eq a, Num a) => a -> Char |
diff --git a/testdata/language-features/basic-values/def03.out b/testdata/language-features/basic-values/def03.out index 726a2061..ceb6a8e1 100644 --- a/testdata/language-features/basic-values/def03.out +++ b/testdata/language-features/basic-values/def03.out | |||
@@ -1,8 +1,8 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | fun | 2 | fun |
3 | = \(a :: _) -> case'Bool | 3 | = \(a :: _) -> case'Bool |
4 | (\_ -> _ :: _) | 4 | (\_ -> _) |
5 | (case'Bool (\_ -> _ :: _) (_rhs undefined) (_rhs '2') (fromInt 2 == a)) | 5 | (case'Bool (\_ -> _) (_rhs undefined) (_rhs '2') (fromInt 2 == a)) |
6 | (_rhs '1') | 6 | (_rhs '1') |
7 | (fromInt 1 == a) | 7 | (fromInt 1 == a) |
8 | main is not found | 8 | main is not found |
diff --git a/testdata/language-features/basic-values/def04.out b/testdata/language-features/basic-values/def04.out index 18c66ed9..e52f9d64 100644 --- a/testdata/language-features/basic-values/def04.out +++ b/testdata/language-features/basic-values/def04.out | |||
@@ -1,14 +1,14 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | fun | 2 | fun |
3 | = \(a :: _) -> case'Bool | 3 | = \(a :: _) -> case'Bool |
4 | (\_ -> _ :: _) | 4 | (\_ -> _) |
5 | (case'Bool (\_ -> _ :: _) (_rhs '_') (_rhs '2') (fromInt 2 == a)) | 5 | (case'Bool (\_ -> _) (_rhs '_') (_rhs '2') (fromInt 2 == a)) |
6 | (_rhs '1') | 6 | (_rhs '1') |
7 | (fromInt 1 == a) | 7 | (fromInt 1 == a) |
8 | fun2 | 8 | fun2 |
9 | = \(a :: _) _ -> case'Bool | 9 | = \(a :: _) _ -> case'Bool |
10 | (\_ -> _ :: _) | 10 | (\_ -> _) |
11 | (case'Bool (\_ -> _ :: _) (_rhs '_') (_rhs '2') (fromInt 2 == a)) | 11 | (case'Bool (\_ -> _) (_rhs '_') (_rhs '2') (fromInt 2 == a)) |
12 | (_rhs '1') | 12 | (_rhs '1') |
13 | (fromInt 1 == a) | 13 | (fromInt 1 == a) |
14 | main is not found | 14 | main is not found |
diff --git a/testdata/language-features/basic-values/typesyn02.out b/testdata/language-features/basic-values/typesyn02.out index 8f8e7892..44bc99c8 100644 --- a/testdata/language-features/basic-values/typesyn02.out +++ b/testdata/language-features/basic-values/typesyn02.out | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | 'MyUnit = _rhs ('HList []) | 2 | 'MyUnit = _rhs ('HList []) |
3 | fun | 3 | fun |
4 | = (\_ (a :: _) -> hlistNilCase (_ :: _) (_rhs HNil) a) | 4 | = (\_ (a :: _) -> hlistNilCase _ (_rhs HNil) a) |
5 | :: forall (b :: _) . b -> MyUnit -> MyUnit | 5 | :: forall (b :: _) . b -> MyUnit -> MyUnit |
6 | main is not found | 6 | main is not found |
7 | ------------ trace | 7 | ------------ trace |
diff --git a/testdata/language-features/basic-values/where05.out b/testdata/language-features/basic-values/where05.out index d11a4dbc..8c082555 100644 --- a/testdata/language-features/basic-values/where05.out +++ b/testdata/language-features/basic-values/where05.out | |||
@@ -2,7 +2,7 @@ | |||
2 | value1 | 2 | value1 |
3 | = _rhs | 3 | = _rhs |
4 | ((\(a :: _) -> case'Bool | 4 | ((\(a :: _) -> case'Bool |
5 | (\_ -> _ :: _) | 5 | (\_ -> _) |
6 | HNil | 6 | HNil |
7 | (\(b := _rhs HNil) -> b) | 7 | (\(b := _rhs HNil) -> b) |
8 | (fromInt 1 == a)) | 8 | (fromInt 1 == a)) |
@@ -10,7 +10,7 @@ value1 | |||
10 | value2 | 10 | value2 |
11 | = _rhs | 11 | = _rhs |
12 | ((\(a :: _) -> case'Bool | 12 | ((\(a :: _) -> case'Bool |
13 | (\_ -> _ :: _) | 13 | (\_ -> _) |
14 | HNil | 14 | HNil |
15 | (\(b := _rhs HNil) -> b) | 15 | (\(b := _rhs HNil) -> b) |
16 | (fromInt 1 == a)) | 16 | (fromInt 1 == a)) |
@@ -18,18 +18,14 @@ value2 | |||
18 | value3 | 18 | value3 |
19 | = _rhs | 19 | = _rhs |
20 | ((\(a :: _) -> case'Bool | 20 | ((\(a :: _) -> case'Bool |
21 | (\_ -> _ :: _) | 21 | (\_ -> _) |
22 | HNil | 22 | HNil |
23 | (\(b := _rhs HNil) -> b) | 23 | (\(b := _rhs HNil) -> b) |
24 | (fromInt 1 == a)) | 24 | (fromInt 1 == a)) |
25 | (fromInt 1)) | 25 | (fromInt 1)) |
26 | value4 | 26 | value4 |
27 | = _rhs | 27 | = _rhs |
28 | \(a := _rhs HNil) -> (\(b :: _) -> case'Bool | 28 | \(a := _rhs HNil) -> (\(b :: _) -> case'Bool (\_ -> _) HNil a (fromInt 1 == b)) |
29 | (\_ -> _ :: _) | ||
30 | HNil | ||
31 | a | ||
32 | (fromInt 1 == b)) | ||
33 | (fromInt 1) | 29 | (fromInt 1) |
34 | main is not found | 30 | main is not found |
35 | ------------ trace | 31 | ------------ trace |
diff --git a/testdata/language-features/guard/guard01.out b/testdata/language-features/guard/guard01.out index e042cf51..b4195756 100644 --- a/testdata/language-features/guard/guard01.out +++ b/testdata/language-features/guard/guard01.out | |||
@@ -1,5 +1,5 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | value = case'Bool (\_ -> _ :: _) (_rhs undefined) (_rhs HNil) True | 2 | value = case'Bool (\_ -> _) (_rhs undefined) (_rhs HNil) True |
3 | main is not found | 3 | main is not found |
4 | ------------ trace | 4 | ------------ trace |
5 | value :: () | 5 | value :: () |
diff --git a/testdata/language-features/guard/guard03.out b/testdata/language-features/guard/guard03.out index c7cfc230..7d7f8a4d 100644 --- a/testdata/language-features/guard/guard03.out +++ b/testdata/language-features/guard/guard03.out | |||
@@ -1,8 +1,8 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | value | 2 | value |
3 | = case'Bool | 3 | = case'Bool |
4 | (\_ -> _ :: _) | 4 | (\_ -> _) |
5 | (case'Bool (\_ -> _ :: _) (_rhs undefined) (_rhs "False") False) | 5 | (case'Bool (\_ -> _) (_rhs undefined) (_rhs "False") False) |
6 | (_rhs "True") | 6 | (_rhs "True") |
7 | True | 7 | True |
8 | main is not found | 8 | main is not found |
diff --git a/testdata/language-features/guard/guard04.out b/testdata/language-features/guard/guard04.out index 35a1df34..21a9ff19 100644 --- a/testdata/language-features/guard/guard04.out +++ b/testdata/language-features/guard/guard04.out | |||
@@ -1,5 +1,5 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | value = case'Bool (\_ -> _ :: _) (_rhs "False") (_rhs "True") True | 2 | value = case'Bool (\_ -> _) (_rhs "False") (_rhs "True") True |
3 | main is not found | 3 | main is not found |
4 | ------------ trace | 4 | ------------ trace |
5 | value :: String | 5 | value :: String |
diff --git a/testdata/language-features/guard/guard07.out b/testdata/language-features/guard/guard07.out index 8b2af531..acc704ba 100644 --- a/testdata/language-features/guard/guard07.out +++ b/testdata/language-features/guard/guard07.out | |||
@@ -1,8 +1,8 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | value | 2 | value |
3 | = case'Bool | 3 | = case'Bool |
4 | (\_ -> _ :: _) | 4 | (\_ -> _) |
5 | (case'Bool (\_ -> _ :: _) (_rhs undefined) (_rhs "False") False) | 5 | (case'Bool (\_ -> _) (_rhs undefined) (_rhs "False") False) |
6 | (_rhs "True") | 6 | (_rhs "True") |
7 | True | 7 | True |
8 | main is not found | 8 | main is not found |
diff --git a/testdata/language-features/guard/guard08.out b/testdata/language-features/guard/guard08.out index 47b29db9..eeef1da6 100644 --- a/testdata/language-features/guard/guard08.out +++ b/testdata/language-features/guard/guard08.out | |||
@@ -1,8 +1,8 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | value | 2 | value |
3 | = case'Bool | 3 | = case'Bool |
4 | (\_ -> _ :: _) | 4 | (\_ -> _) |
5 | (case'Bool (\_ -> _ :: _) (_rhs undefined) (_rhs "False") False) | 5 | (case'Bool (\_ -> _) (_rhs undefined) (_rhs "False") False) |
6 | (_rhs "True") | 6 | (_rhs "True") |
7 | True | 7 | True |
8 | main is not found | 8 | main is not found |
diff --git a/testdata/language-features/guard/guard09.out b/testdata/language-features/guard/guard09.out index aa6d848f..09a72fa0 100644 --- a/testdata/language-features/guard/guard09.out +++ b/testdata/language-features/guard/guard09.out | |||
@@ -1,8 +1,8 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | value | 2 | value |
3 | = case'Bool | 3 | = case'Bool |
4 | (\_ -> _ :: _) | 4 | (\_ -> _) |
5 | (case'Bool (\_ -> _ :: _) (_rhs undefined) (_rhs "False") False) | 5 | (case'Bool (\_ -> _) (_rhs undefined) (_rhs "False") False) |
6 | (_rhs "True") | 6 | (_rhs "True") |
7 | True | 7 | True |
8 | main is not found | 8 | main is not found |
diff --git a/testdata/language-features/guard/guard11.out b/testdata/language-features/guard/guard11.out index 47bd37ad..1d173fb2 100644 --- a/testdata/language-features/guard/guard11.out +++ b/testdata/language-features/guard/guard11.out | |||
@@ -1,5 +1,5 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | fun = \(a :: _) -> case'Bool (\_ -> _ :: _) (_rhs "False") (_rhs "True") a | 2 | fun = \(a :: _) -> case'Bool (\_ -> _) (_rhs "False") (_rhs "True") a |
3 | main is not found | 3 | main is not found |
4 | ------------ trace | 4 | ------------ trace |
5 | fun :: Bool -> String | 5 | fun :: Bool -> String |
diff --git a/testdata/language-features/guard/guard13.out b/testdata/language-features/guard/guard13.out index 65411e87..e8bd4c84 100644 --- a/testdata/language-features/guard/guard13.out +++ b/testdata/language-features/guard/guard13.out | |||
@@ -1,5 +1,5 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | fun = \(a :: _) -> case'Bool (\_ -> _ :: _) (_rhs HNil) (_rhs HNil) a | 2 | fun = \(a :: _) -> case'Bool (\_ -> _) (_rhs HNil) (_rhs HNil) a |
3 | main is not found | 3 | main is not found |
4 | ------------ trace | 4 | ------------ trace |
5 | fun :: Bool -> () | 5 | fun :: Bool -> () |
diff --git a/testdata/language-features/guard/guard14.out b/testdata/language-features/guard/guard14.out index 05321956..e0b32348 100644 --- a/testdata/language-features/guard/guard14.out +++ b/testdata/language-features/guard/guard14.out | |||
@@ -1,6 +1,5 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | value | 2 | value = _rhs \(a := case'Bool (\_ -> _) (_rhs HNil) (_rhs HNil) True) -> HNil |
3 | = _rhs \(a := case'Bool (\_ -> _ :: _) (_rhs HNil) (_rhs HNil) True) -> HNil | ||
4 | main is not found | 3 | main is not found |
5 | ------------ trace | 4 | ------------ trace |
6 | value :: () | 5 | value :: () |
diff --git a/testdata/language-features/guard/guard15.out b/testdata/language-features/guard/guard15.out index 50452c29..733c2b34 100644 --- a/testdata/language-features/guard/guard15.out +++ b/testdata/language-features/guard/guard15.out | |||
@@ -1,6 +1,5 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | value | 2 | value = _rhs \(a := case'Bool (\_ -> _) (_rhs HNil) (_rhs HNil) True) -> HNil |
3 | = _rhs \(a := case'Bool (\_ -> _ :: _) (_rhs HNil) (_rhs HNil) True) -> HNil | ||
4 | main is not found | 3 | main is not found |
5 | ------------ trace | 4 | ------------ trace |
6 | value :: () | 5 | value :: () |
diff --git a/testdata/language-features/guard/guard16.out b/testdata/language-features/guard/guard16.out index 710f1ae9..4fc90e30 100644 --- a/testdata/language-features/guard/guard16.out +++ b/testdata/language-features/guard/guard16.out | |||
@@ -2,9 +2,9 @@ | |||
2 | value | 2 | value |
3 | = _rhs | 3 | = _rhs |
4 | ((\(a :: _) -> case'Bool | 4 | ((\(a :: _) -> case'Bool |
5 | (\_ -> _ :: _) | 5 | (\_ -> _) |
6 | HNil | 6 | HNil |
7 | (case'Bool (\_ -> _ :: _) HNil HNil True) | 7 | (case'Bool (\_ -> _) HNil HNil True) |
8 | (fromInt 1 == a)) | 8 | (fromInt 1 == a)) |
9 | (fromInt 1)) | 9 | (fromInt 1)) |
10 | main is not found | 10 | main is not found |
diff --git a/testdata/language-features/module/import09.out b/testdata/language-features/module/import09.out index 790fbf72..e7df6502 100644 --- a/testdata/language-features/module/import09.out +++ b/testdata/language-features/module/import09.out | |||
@@ -1,6 +1,6 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | fun | 2 | fun |
3 | = (\_ (a :: _) -> hlistNilCase (_ :: _) (_rhs HNil) a) | 3 | = (\_ (a :: _) -> hlistNilCase _ (_rhs HNil) a) |
4 | :: forall (b :: _) . b -> MyUnit -> MyUnit | 4 | :: forall (b :: _) . b -> MyUnit -> MyUnit |
5 | main is not found | 5 | main is not found |
6 | ------------ trace | 6 | ------------ trace |
diff --git a/testdata/language-features/pattern/pattern01.out b/testdata/language-features/pattern/pattern01.out index 7679e35c..1683fdec 100644 --- a/testdata/language-features/pattern/pattern01.out +++ b/testdata/language-features/pattern/pattern01.out | |||
@@ -1,9 +1,8 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | fun1 | 2 | fun1 = \(a :: _) -> case'Bool (\_ -> _) (_rhs '_') (_rhs '0') (fromInt 0 == a) |
3 | = \(a :: _) -> case'Bool (\_ -> _ :: _) (_rhs '_') (_rhs '0') (fromInt 0 == a) | 3 | fun2 = \(a :: _) -> case'Bool (\_ -> _) (_rhs '_') (_rhs '0') ("0" == a) |
4 | fun2 = \(a :: _) -> case'Bool (\_ -> _ :: _) (_rhs '_') (_rhs '0') ("0" == a) | 4 | fun3 = \(a :: _) -> case'Bool (\_ -> _) (_rhs '_') (_rhs '0') ('0' == a) |
5 | fun3 = \(a :: _) -> case'Bool (\_ -> _ :: _) (_rhs '_') (_rhs '0') ('0' == a) | 5 | fun4 = \(a :: _) -> hlistNilCase _ (_rhs '0') a |
6 | fun4 = \(a :: _) -> hlistNilCase (_ :: _) (_rhs '0') a | ||
7 | main is not found | 6 | main is not found |
8 | ------------ trace | 7 | ------------ trace |
9 | fun1 :: forall a . (Eq a, Num a) => a -> Char | 8 | fun1 :: forall a . (Eq a, Num a) => a -> Char |
diff --git a/testdata/language-features/pattern/uncovered.out b/testdata/language-features/pattern/uncovered.out index 9af16a3f..531a913a 100644 --- a/testdata/language-features/pattern/uncovered.out +++ b/testdata/language-features/pattern/uncovered.out | |||
@@ -1,37 +1,37 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | f | 2 | f |
3 | = \(a :: _) (b :: _) (c :: _) -> case'Bool | 3 | = \(a :: _) (b :: _) (c :: _) -> case'Bool |
4 | (\_ -> _ :: _) | 4 | (\_ -> _) |
5 | (case'Bool | 5 | (case'Bool |
6 | (\_ -> _ :: _) | 6 | (\_ -> _) |
7 | (case'Bool (\_ -> _ :: _) (_rhs undefined) (_rhs (fromInt 1)) c) | 7 | (case'Bool (\_ -> _) (_rhs undefined) (_rhs (fromInt 1)) c) |
8 | (_rhs (fromInt 2)) | 8 | (_rhs (fromInt 2)) |
9 | a) | 9 | a) |
10 | (case'Bool | 10 | (case'Bool |
11 | (\_ -> _ :: _) | 11 | (\_ -> _) |
12 | (_rhs (fromInt 0)) | 12 | (_rhs (fromInt 0)) |
13 | (case'Bool (\_ -> _ :: _) (_rhs (fromInt 1)) (_rhs undefined) a) | 13 | (case'Bool (\_ -> _) (_rhs (fromInt 1)) (_rhs undefined) a) |
14 | c) | 14 | c) |
15 | b | 15 | b |
16 | g | 16 | g |
17 | = \(a :: _) -> case'List | 17 | = \(a :: _) -> case'List |
18 | (\_ -> _ :: _) | 18 | (\_ -> _) |
19 | (_rhs undefined) | 19 | (_rhs undefined) |
20 | (\(b :: _) (c :: _) -> case'Bool | 20 | (\(b :: _) (c :: _) -> case'Bool |
21 | (\_ -> _ :: _) | 21 | (\_ -> _) |
22 | (_rhs undefined) | 22 | (_rhs undefined) |
23 | (case'List | 23 | (case'List |
24 | (\_ -> _ :: _) | 24 | (\_ -> _) |
25 | (_rhs undefined) | 25 | (_rhs undefined) |
26 | (\(d :: _) (e :: _) -> case'Bool | 26 | (\(d :: _) (e :: _) -> case'Bool |
27 | (\_ -> _ :: _) | 27 | (\_ -> _) |
28 | (case'List | 28 | (case'List |
29 | (\_ -> _ :: _) | 29 | (\_ -> _) |
30 | (_rhs undefined) | 30 | (_rhs undefined) |
31 | (\(f :: _) (g :: _) -> case'Bool | 31 | (\(f :: _) (g :: _) -> case'Bool |
32 | (\_ -> _ :: _) | 32 | (\_ -> _) |
33 | (_rhs undefined) | 33 | (_rhs undefined) |
34 | (case'List (\_ -> _ :: _) (_rhs False) (\_ _ -> _rhs undefined) g) | 34 | (case'List (\_ -> _) (_rhs False) (\_ _ -> _rhs undefined) g) |
35 | f) | 35 | f) |
36 | e) | 36 | e) |
37 | (_rhs undefined) | 37 | (_rhs undefined) |
@@ -41,27 +41,27 @@ g | |||
41 | a | 41 | a |
42 | h | 42 | h |
43 | = \(a :: _) -> case'List | 43 | = \(a :: _) -> case'List |
44 | (\_ -> _ :: _) | 44 | (\_ -> _) |
45 | (_rhs undefined) | 45 | (_rhs undefined) |
46 | (\(b :: _) (c :: _) -> case'List | 46 | (\(b :: _) (c :: _) -> case'List |
47 | (\_ -> _ :: _) | 47 | (\_ -> _) |
48 | (_rhs undefined) | 48 | (_rhs undefined) |
49 | (\(d :: _) (e :: _) -> case'Bool | 49 | (\(d :: _) (e :: _) -> case'Bool |
50 | (\_ -> _ :: _) | 50 | (\_ -> _) |
51 | (_rhs undefined) | 51 | (_rhs undefined) |
52 | (case'List | 52 | (case'List |
53 | (\_ -> _ :: _) | 53 | (\_ -> _) |
54 | (case'List | 54 | (case'List |
55 | (\_ -> _ :: _) | 55 | (\_ -> _) |
56 | (_rhs undefined) | 56 | (_rhs undefined) |
57 | (\(f :: _) (g :: _) -> case'List | 57 | (\(f :: _) (g :: _) -> case'List |
58 | (\_ -> _ :: _) | 58 | (\_ -> _) |
59 | (_rhs undefined) | 59 | (_rhs undefined) |
60 | (\(h :: _) (i :: _) -> case'Bool | 60 | (\(h :: _) (i :: _) -> case'Bool |
61 | (\_ -> _ :: _) | 61 | (\_ -> _) |
62 | (case'List | 62 | (case'List |
63 | (\_ -> _ :: _) | 63 | (\_ -> _) |
64 | (case'List (\_ -> _ :: _) (_rhs True) (\_ _ -> _rhs undefined) g) | 64 | (case'List (\_ -> _) (_rhs True) (\_ _ -> _rhs undefined) g) |
65 | (\_ _ -> _rhs undefined) | 65 | (\_ _ -> _rhs undefined) |
66 | i) | 66 | i) |
67 | (_rhs undefined) | 67 | (_rhs undefined) |
diff --git a/testdata/language-features/recursion/simplerec01.out b/testdata/language-features/recursion/simplerec01.out index e264622f..89006870 100644 --- a/testdata/language-features/recursion/simplerec01.out +++ b/testdata/language-features/recursion/simplerec01.out | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------ desugared source code | 1 | ------------ desugared source code |
2 | fun | 2 | fun |
3 | = \(a :: _) -> case'Bool | 3 | = \(a :: _) -> case'Bool |
4 | (\_ -> _ :: _) | 4 | (\_ -> _) |
5 | (_rhs (fun (fromInt 0))) | 5 | (_rhs (fun (fromInt 0))) |
6 | (_rhs 'a') | 6 | (_rhs 'a') |
7 | (fromInt 0 == a) | 7 | (fromInt 0 == a) |
diff --git a/testdata/language-features/recursion/simplerec02.out b/testdata/language-features/recursion/simplerec02.out index 4e95a85e..7f24ea1c 100644 --- a/testdata/language-features/recursion/simplerec02.out +++ b/testdata/language-features/recursion/simplerec02.out | |||
@@ -4,7 +4,7 @@ value | |||
4 | \(a | 4 | \(a |
5 | := primFix | 5 | := primFix |
6 | \(b :: _) (c :: _) -> case'Bool | 6 | \(b :: _) (c :: _) -> case'Bool |
7 | (\_ -> _ :: _) | 7 | (\_ -> _) |
8 | (_rhs (b (fromInt 0))) | 8 | (_rhs (b (fromInt 0))) |
9 | (_rhs 'a') | 9 | (_rhs 'a') |
10 | (fromInt 0 == c)) -> HNil | 10 | (fromInt 0 == c)) -> HNil |
diff --git a/testdata/language-features/recursion/simplerec03.out b/testdata/language-features/recursion/simplerec03.out index 9bdd104f..512baba5 100644 --- a/testdata/language-features/recursion/simplerec03.out +++ b/testdata/language-features/recursion/simplerec03.out | |||
@@ -4,7 +4,7 @@ value | |||
4 | \(a | 4 | \(a |
5 | := primFix | 5 | := primFix |
6 | \(b :: _) (c :: _) -> case'Bool | 6 | \(b :: _) (c :: _) -> case'Bool |
7 | (\_ -> _ :: _) | 7 | (\_ -> _) |
8 | (_rhs (b (fromInt 0))) | 8 | (_rhs (b (fromInt 0))) |
9 | (_rhs 'a') | 9 | (_rhs 'a') |
10 | (fromInt 0 == c)) -> HNil | 10 | (fromInt 0 == c)) -> HNil |