diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-05-01 19:13:34 +0200 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-05-01 19:13:34 +0200 |
commit | 90e336391673ac1cf9ff582e98e35faf89a8f09d (patch) | |
tree | 0b7a14dbfc5734c07c2ae4ed34cb679fecd10d3f /testdata/language-features/basic-values | |
parent | 1a7544763729938e7009ead1e375e9bbf413afb0 (diff) |
improve pretty print layout & show desugared source code in .out files
Diffstat (limited to 'testdata/language-features/basic-values')
50 files changed, 328 insertions, 5 deletions
diff --git a/testdata/language-features/basic-values/bool01.out b/testdata/language-features/basic-values/bool01.out index 3fd03cdf..125ed17a 100644 --- a/testdata/language-features/basic-values/bool01.out +++ b/testdata/language-features/basic-values/bool01.out | |||
@@ -1,3 +1,6 @@ | |||
1 | ------------ desugared source code | ||
2 | value1 = _rhs True | ||
3 | value2 = _rhs False | ||
1 | main is not found | 4 | main is not found |
2 | ------------ trace | 5 | ------------ trace |
3 | value1 :: [32mBool[0m | 6 | value1 :: [32mBool[0m |
diff --git a/testdata/language-features/basic-values/case01.out b/testdata/language-features/basic-values/case01.out index 1cbce892..1fc0f7f0 100644 --- a/testdata/language-features/basic-values/case01.out +++ b/testdata/language-features/basic-values/case01.out | |||
@@ -1,3 +1,10 @@ | |||
1 | ------------ desugared source code | ||
2 | value1 = _rhs ((\(a :: _) -> hlistNilCase (_ :: _) HNil a) HNil) | ||
3 | value2 = _rhs ((\(a :: _) -> hlistNilCase (_ :: _) HNil a) HNil) | ||
4 | value3 = _rhs ((\(a :: _) -> hlistNilCase (_ :: _) HNil a) HNil) | ||
5 | value4 = _rhs ((\(a :: _) -> hlistNilCase (_ :: _) HNil a) HNil) | ||
6 | value5 = _rhs ((\(a :: _) -> hlistNilCase (_ :: _) HNil a) HNil) | ||
7 | value6 = _rhs ((\_ -> HNil) HNil) | ||
1 | main is not found | 8 | main is not found |
2 | ------------ trace | 9 | ------------ trace |
3 | value1 :: [32m()[0m | 10 | value1 :: [32m()[0m |
diff --git a/testdata/language-features/basic-values/case02.out b/testdata/language-features/basic-values/case02.out index 974b56da..146ad059 100644 --- a/testdata/language-features/basic-values/case02.out +++ b/testdata/language-features/basic-values/case02.out | |||
@@ -1,3 +1,15 @@ | |||
1 | ------------ desugared source code | ||
2 | value1 | ||
3 | = _rhs | ||
4 | ((\(a :: _) -> 'BoolCase \_ -> _ :: _ HNil HNil (fromInt 1 == a)) (fromInt 1)) | ||
5 | value2 | ||
6 | = _rhs | ||
7 | ((\(a :: _) -> 'BoolCase | ||
8 | \_ -> _ :: _ | ||
9 | ('BoolCase \_ -> _ :: _ "_" "2" (fromInt 2 == a)) | ||
10 | "1" | ||
11 | (fromInt 1 == a)) | ||
12 | (fromInt 2)) | ||
1 | main is not found | 13 | main is not found |
2 | ------------ trace | 14 | ------------ trace |
3 | value1 :: [32mforall a . ([32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m) => ()[0m | 15 | value1 :: [32mforall a . ([32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m) => ()[0m |
diff --git a/testdata/language-features/basic-values/case05.out b/testdata/language-features/basic-values/case05.out index e77a1024..7b58c84f 100644 --- a/testdata/language-features/basic-values/case05.out +++ b/testdata/language-features/basic-values/case05.out | |||
@@ -1,3 +1,7 @@ | |||
1 | ------------ desugared source code | ||
2 | value | ||
3 | = \(a :: _) -> _rhs | ||
4 | ((\(b :: _) -> 'BoolCase \_ -> _ :: _ undefined '1' (fromInt 1 == b)) a) | ||
1 | main is not found | 5 | main is not found |
2 | ------------ trace | 6 | ------------ trace |
3 | value :: [32mforall a . ([32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m) => [32ma[0;32m -> Char[0m | 7 | value :: [32mforall a . ([32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m) => [32ma[0;32m -> Char[0m |
diff --git a/testdata/language-features/basic-values/case06.out b/testdata/language-features/basic-values/case06.out index d2524007..92b5e196 100644 --- a/testdata/language-features/basic-values/case06.out +++ b/testdata/language-features/basic-values/case06.out | |||
@@ -1,3 +1,7 @@ | |||
1 | ------------ desugared source code | ||
2 | value | ||
3 | = \(a :: _) -> _rhs | ||
4 | ((\(b :: _) -> 'BoolCase \_ -> _ :: _ '_' '1' (fromInt 1 == b)) a) | ||
1 | main is not found | 5 | main is not found |
2 | ------------ trace | 6 | ------------ trace |
3 | value :: [32mforall a . ([32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m) => [32ma[0;32m -> Char[0m | 7 | value :: [32mforall a . ([32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m) => [32ma[0;32m -> Char[0m |
diff --git a/testdata/language-features/basic-values/data01.out b/testdata/language-features/basic-values/data01.out index 294c3b86..aa1f0c31 100644 --- a/testdata/language-features/basic-values/data01.out +++ b/testdata/language-features/basic-values/data01.out | |||
@@ -1,22 +1,40 @@ | |||
1 | ------------ desugared source code | ||
2 | data A :: Type where | ||
3 | B :: A | ||
4 | C :: A | ||
5 | D :: A | ||
6 | data E :: Type where | ||
7 | F :: E | ||
8 | G :: HList 'Nil -> E | ||
9 | H :: E | ||
10 | data D1 :: Type where | ||
11 | C1 :: D1 | ||
12 | C2 :: HList 'Nil -> D1 | ||
13 | C3 :: D1 | ||
1 | main is not found | 14 | main is not found |
2 | ------------ trace | 15 | ------------ trace |
3 | 'A :: [32mType[0m | 16 | 'A :: [32mType[0m |
4 | B :: [32mA[0m | 17 | B :: [32mA[0m |
5 | C :: [32mA[0m | 18 | C :: [32mA[0m |
6 | D :: [32mA[0m | 19 | D :: [32mA[0m |
7 | 'ACase :: [32mforall (a :: A -> Type) -> [32m[32ma[0;32m [32m'B[0;32m[0;32m -> [32m[32ma[0;32m [32m'C[0;32m[0;32m -> [32m[32ma[0;32m [32m'D[0;32m[0;32m -> forall (b :: A) -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m[0m | 20 | 'ACase |
21 | :: [32mforall (a :: A -> Type) -> [32m[32ma[0;32m [32m'B[0;32m[0;32m -> [32m[32ma[0;32m [32m'C[0;32m[0;32m -> [32m[32ma[0;32m [32m'D[0;32m[0;32m -> forall (b :: A) -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m[0m | ||
8 | match'A :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32mA[0;32m[0;32m -> forall b -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m[0m | 22 | match'A :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32mA[0;32m[0;32m -> forall b -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m[0m |
9 | 'E :: [32mType[0m | 23 | 'E :: [32mType[0m |
10 | F :: [32mE[0m | 24 | F :: [32mE[0m |
11 | G :: [32m() -> E[0m | 25 | G :: [32m() -> E[0m |
12 | H :: [32mE[0m | 26 | H :: [32mE[0m |
13 | 'ECase :: [32mforall (a :: E -> Type) -> [32m[32ma[0;32m [32m'F[0;32m[0;32m -> (forall (b :: ()) -> [32m[32ma[0;32m [32m('G [32mb[0;32m)[0;32m[0;32m) -> [32m[32ma[0;32m [32m'H[0;32m[0;32m -> forall (c :: E) -> [32m[32ma[0;32m [32m[32mc[0;32m[0;32m[0;32m[0m | 27 | 'ECase |
28 | :: [32mforall (a :: E -> Type) | ||
29 | -> [32m[32ma[0;32m [32m'F[0;32m[0;32m -> (forall (b :: ()) -> [32m[32ma[0;32m [32m('G [32mb[0;32m)[0;32m[0;32m) -> [32m[32ma[0;32m [32m'H[0;32m[0;32m -> forall (c :: E) -> [32m[32ma[0;32m [32m[32mc[0;32m[0;32m[0;32m[0m | ||
14 | match'E :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32mE[0;32m[0;32m -> forall b -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m[0m | 30 | match'E :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32mE[0;32m[0;32m -> forall b -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m[0m |
15 | 'D1 :: [32mType[0m | 31 | 'D1 :: [32mType[0m |
16 | C1 :: [32mD1[0m | 32 | C1 :: [32mD1[0m |
17 | C2 :: [32m() -> D1[0m | 33 | C2 :: [32m() -> D1[0m |
18 | C3 :: [32mD1[0m | 34 | C3 :: [32mD1[0m |
19 | 'D1Case :: [32mforall (a :: D1 -> Type) -> [32m[32ma[0;32m [32m'C1[0;32m[0;32m -> (forall (b :: ()) -> [32m[32ma[0;32m [32m('C2 [32mb[0;32m)[0;32m[0;32m) -> [32m[32ma[0;32m [32m'C3[0;32m[0;32m -> forall (c :: D1) -> [32m[32ma[0;32m [32m[32mc[0;32m[0;32m[0;32m[0m | 35 | 'D1Case |
36 | :: [32mforall (a :: D1 -> Type) | ||
37 | -> [32m[32ma[0;32m [32m'C1[0;32m[0;32m -> (forall (b :: ()) -> [32m[32ma[0;32m [32m('C2 [32mb[0;32m)[0;32m[0;32m) -> [32m[32ma[0;32m [32m'C3[0;32m[0;32m -> forall (c :: D1) -> [32m[32ma[0;32m [32m[32mc[0;32m[0;32m[0;32m[0m | ||
20 | match'D1 :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32mD1[0;32m[0;32m -> forall b -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m[0m | 38 | match'D1 :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32mD1[0;32m[0;32m -> forall b -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m[0m |
21 | ------------ tooltips | 39 | ------------ tooltips |
22 | testdata/language-features/basic-values/data01.lc 1:6-1:7 Type | 40 | testdata/language-features/basic-values/data01.lc 1:6-1:7 Type |
diff --git a/testdata/language-features/basic-values/def01.out b/testdata/language-features/basic-values/def01.out index 712cd657..7519f75e 100644 --- a/testdata/language-features/basic-values/def01.out +++ b/testdata/language-features/basic-values/def01.out | |||
@@ -1,3 +1,7 @@ | |||
1 | ------------ desugared source code | ||
2 | unit = _rhs HNil | ||
3 | fun1 = \_ -> _rhs (fromInt 1) | ||
4 | fun2 = \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 'c' | ||
1 | main is not found | 5 | main is not found |
2 | ------------ trace | 6 | ------------ trace |
3 | unit :: [32m()[0m | 7 | unit :: [32m()[0m |
diff --git a/testdata/language-features/basic-values/def03.out b/testdata/language-features/basic-values/def03.out index 38bae81f..1dca3720 100644 --- a/testdata/language-features/basic-values/def03.out +++ b/testdata/language-features/basic-values/def03.out | |||
@@ -1,3 +1,10 @@ | |||
1 | ------------ desugared source code | ||
2 | fun | ||
3 | = \(a :: _) -> 'BoolCase | ||
4 | \_ -> _ :: _ | ||
5 | ('BoolCase \_ -> _ :: _ (_rhs undefined) (_rhs '2') (fromInt 2 == a)) | ||
6 | (_rhs '1') | ||
7 | (fromInt 1 == a) | ||
1 | main is not found | 8 | main is not found |
2 | ------------ trace | 9 | ------------ trace |
3 | fun :: [32mforall a . ([32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m, [32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m) => [32ma[0;32m -> Char[0m | 10 | fun :: [32mforall a . ([32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m, [32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m) => [32ma[0;32m -> Char[0m |
diff --git a/testdata/language-features/basic-values/def04.out b/testdata/language-features/basic-values/def04.out index 977601b2..8c4b3f46 100644 --- a/testdata/language-features/basic-values/def04.out +++ b/testdata/language-features/basic-values/def04.out | |||
@@ -1,3 +1,16 @@ | |||
1 | ------------ desugared source code | ||
2 | fun | ||
3 | = \(a :: _) -> 'BoolCase | ||
4 | \_ -> _ :: _ | ||
5 | ('BoolCase \_ -> _ :: _ (_rhs '_') (_rhs '2') (fromInt 2 == a)) | ||
6 | (_rhs '1') | ||
7 | (fromInt 1 == a) | ||
8 | fun2 | ||
9 | = \(a :: _) -> \_ -> 'BoolCase | ||
10 | \_ -> _ :: _ | ||
11 | ('BoolCase \_ -> _ :: _ (_rhs '_') (_rhs '2') (fromInt 2 == a)) | ||
12 | (_rhs '1') | ||
13 | (fromInt 1 == a) | ||
1 | main is not found | 14 | main is not found |
2 | ------------ trace | 15 | ------------ trace |
3 | fun :: [32mforall a . ([32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m, [32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m) => [32ma[0;32m -> Char[0m | 16 | fun :: [32mforall a . ([32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m, [32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m) => [32ma[0;32m -> Char[0m |
diff --git a/testdata/language-features/basic-values/deforder01.out b/testdata/language-features/basic-values/deforder01.out index 325f4361..be9385d0 100644 --- a/testdata/language-features/basic-values/deforder01.out +++ b/testdata/language-features/basic-values/deforder01.out | |||
@@ -1,3 +1,6 @@ | |||
1 | ------------ desugared source code | ||
2 | x = _rhs '1' | ||
3 | y = _rhs x | ||
1 | main is not found | 4 | main is not found |
2 | ------------ trace | 5 | ------------ trace |
3 | x :: [32mChar[0m | 6 | x :: [32mChar[0m |
diff --git a/testdata/language-features/basic-values/deforder02.out b/testdata/language-features/basic-values/deforder02.out index 9f79a9bd..b8990ab3 100644 --- a/testdata/language-features/basic-values/deforder02.out +++ b/testdata/language-features/basic-values/deforder02.out | |||
@@ -1,3 +1,6 @@ | |||
1 | ------------ desugared source code | ||
2 | x = _rhs '1' | ||
3 | y = _rhs x | ||
1 | main is not found | 4 | main is not found |
2 | ------------ trace | 5 | ------------ trace |
3 | x :: [32mChar[0m | 6 | x :: [32mChar[0m |
diff --git a/testdata/language-features/basic-values/deforder03.out b/testdata/language-features/basic-values/deforder03.out index d98597f6..e6f8794d 100644 --- a/testdata/language-features/basic-values/deforder03.out +++ b/testdata/language-features/basic-values/deforder03.out | |||
@@ -1,3 +1,5 @@ | |||
1 | ------------ desugared source code | ||
2 | value = _rhs \(a := _rhs HNil) (b := _rhs a) -> '1' | ||
1 | main is not found | 3 | main is not found |
2 | ------------ trace | 4 | ------------ trace |
3 | value :: [32mChar[0m | 5 | value :: [32mChar[0m |
diff --git a/testdata/language-features/basic-values/deforder04.out b/testdata/language-features/basic-values/deforder04.out index 5d6e1d80..ec663000 100644 --- a/testdata/language-features/basic-values/deforder04.out +++ b/testdata/language-features/basic-values/deforder04.out | |||
@@ -1,3 +1,5 @@ | |||
1 | ------------ desugared source code | ||
2 | value = _rhs \(a := _rhs HNil) (b := _rhs a) -> '1' | ||
1 | main is not found | 3 | main is not found |
2 | ------------ trace | 4 | ------------ trace |
3 | value :: [32mChar[0m | 5 | value :: [32mChar[0m |
diff --git a/testdata/language-features/basic-values/deforder05.out b/testdata/language-features/basic-values/deforder05.out index 73897e36..58a3f0fc 100644 --- a/testdata/language-features/basic-values/deforder05.out +++ b/testdata/language-features/basic-values/deforder05.out | |||
@@ -1,3 +1,5 @@ | |||
1 | ------------ desugared source code | ||
2 | value = _rhs \(a := _rhs HNil) (b := _rhs a) -> '1' | ||
1 | main is not found | 3 | main is not found |
2 | ------------ trace | 4 | ------------ trace |
3 | value :: [32mChar[0m | 5 | value :: [32mChar[0m |
diff --git a/testdata/language-features/basic-values/deforder06.out b/testdata/language-features/basic-values/deforder06.out index 794432d6..48f45d42 100644 --- a/testdata/language-features/basic-values/deforder06.out +++ b/testdata/language-features/basic-values/deforder06.out | |||
@@ -1,3 +1,5 @@ | |||
1 | ------------ desugared source code | ||
2 | value = _rhs \(a := _rhs HNil) (b := _rhs a) -> '1' | ||
1 | main is not found | 3 | main is not found |
2 | ------------ trace | 4 | ------------ trace |
3 | value :: [32mChar[0m | 5 | value :: [32mChar[0m |
diff --git a/testdata/language-features/basic-values/fixity01.out b/testdata/language-features/basic-values/fixity01.out index f30cd6fa..2274b6a6 100644 --- a/testdata/language-features/basic-values/fixity01.out +++ b/testdata/language-features/basic-values/fixity01.out | |||
@@ -1,3 +1,12 @@ | |||
1 | ------------ desugared source code | ||
2 | funL = \(a :: _) -> \_ -> _rhs a | ||
3 | funR = \(a :: _) -> \_ -> _rhs a | ||
4 | <<<< = \(a :: _) -> \_ -> _rhs a | ||
5 | >>>> = \_ (a :: _) -> _rhs a | ||
6 | infixr 7 funL | ||
7 | infixr 7 <<<< | ||
8 | infixr 6 >>>> | ||
9 | infixr 6 funR | ||
1 | main is not found | 10 | main is not found |
2 | ------------ trace | 11 | ------------ trace |
3 | funL :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> [32ma[0;32m[0m | 12 | funL :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> [32ma[0;32m[0m |
diff --git a/testdata/language-features/basic-values/fixity02.out b/testdata/language-features/basic-values/fixity02.out index e16184f0..38f4bea0 100644 --- a/testdata/language-features/basic-values/fixity02.out +++ b/testdata/language-features/basic-values/fixity02.out | |||
@@ -1,3 +1,28 @@ | |||
1 | ------------ desugared source code | ||
2 | funL = \(a :: _) -> \_ -> _rhs a | ||
3 | funR = \_ (a :: _) -> _rhs a | ||
4 | <@ = \(a :: _) -> \_ -> _rhs a | ||
5 | @> = \_ (a :: _) -> _rhs a | ||
6 | infixr 7 funL | ||
7 | infixr 7 <@ | ||
8 | infixr 6 @> | ||
9 | infixr 6 funR | ||
10 | value1 = _rhs (HNil @> 'c' @> "hi" @> 1.2 :: Float) | ||
11 | value2 = _rhs (HNil @> 'c' <@ "hi" @> 1.2 :: Float) | ||
12 | value3 = _rhs (HNil <@ 'c' @> "hi" @> 1.2 :: Float) | ||
13 | value4 = _rhs (HNil <@ 'c' <@ "hi" @> 1.2 :: Float) | ||
14 | value5 = _rhs (HNil @> 'c' @> "hi" <@ 1.2 :: String) | ||
15 | value6 = _rhs (HNil @> 'c' <@ "hi" <@ 1.2 :: Char) | ||
16 | value7 = _rhs (HNil <@ 'c' @> "hi" <@ 1.2 :: String) | ||
17 | value8 = _rhs (HNil <@ 'c' <@ "hi" <@ 1.2 :: HList 'Nil) | ||
18 | funValue1 = _rhs (HNil `funR` 'c' `funR` "hi" `funR` 1.2 :: Float) | ||
19 | funValue2 = _rhs (HNil `funR` 'c' `funL` "hi" `funR` 1.2 :: Float) | ||
20 | funValue3 = _rhs (HNil `funL` 'c' `funR` "hi" `funR` 1.2 :: Float) | ||
21 | funValue4 = _rhs (HNil `funL` 'c' `funL` "hi" `funR` 1.2 :: Float) | ||
22 | funValue5 = _rhs (HNil `funR` 'c' `funR` "hi" `funL` 1.2 :: String) | ||
23 | funValue6 = _rhs (HNil `funR` 'c' `funL` "hi" `funL` 1.2 :: Char) | ||
24 | funValue7 = _rhs (HNil `funL` 'c' `funR` "hi" `funL` 1.2 :: String) | ||
25 | funValue8 = _rhs (HNil `funL` 'c' `funL` "hi" `funL` 1.2 :: HList 'Nil) | ||
1 | main is not found | 26 | main is not found |
2 | ------------ trace | 27 | ------------ trace |
3 | funL :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> [32ma[0;32m[0m | 28 | funL :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> [32ma[0;32m[0m |
diff --git a/testdata/language-features/basic-values/if01.out b/testdata/language-features/basic-values/if01.out index b68d03e3..1e472faf 100644 --- a/testdata/language-features/basic-values/if01.out +++ b/testdata/language-features/basic-values/if01.out | |||
@@ -1,3 +1,6 @@ | |||
1 | ------------ desugared source code | ||
2 | value1 = _rhs (primIfThenElse True HNil HNil) | ||
3 | value2 = _rhs (primIfThenElse False 1.0 2.0) | ||
1 | main is not found | 4 | main is not found |
2 | ------------ trace | 5 | ------------ trace |
3 | value1 :: [32m()[0m | 6 | value1 :: [32m()[0m |
diff --git a/testdata/language-features/basic-values/indentation01.out b/testdata/language-features/basic-values/indentation01.out index 3893683c..0540da3c 100644 --- a/testdata/language-features/basic-values/indentation01.out +++ b/testdata/language-features/basic-values/indentation01.out | |||
@@ -1,3 +1,6 @@ | |||
1 | ------------ desugared source code | ||
2 | tuple1 = _rhs HNil | ||
3 | tuple2 = _rhs HNil | ||
1 | main is not found | 4 | main is not found |
2 | ------------ trace | 5 | ------------ trace |
3 | tuple1 :: [32m()[0m | 6 | tuple1 :: [32m()[0m |
diff --git a/testdata/language-features/basic-values/indentation02.out b/testdata/language-features/basic-values/indentation02.out index c6fd7aad..8fa11e6c 100644 --- a/testdata/language-features/basic-values/indentation02.out +++ b/testdata/language-features/basic-values/indentation02.out | |||
@@ -1,3 +1,6 @@ | |||
1 | ------------ desugared source code | ||
2 | tuple1 = _rhs HNil | ||
3 | tuple2 = _rhs HNil | ||
1 | main is not found | 4 | main is not found |
2 | ------------ trace | 5 | ------------ trace |
3 | tuple1 :: [32m()[0m | 6 | tuple1 :: [32m()[0m |
diff --git a/testdata/language-features/basic-values/infix01.out b/testdata/language-features/basic-values/infix01.out index 33ab245c..ec2b9ce7 100644 --- a/testdata/language-features/basic-values/infix01.out +++ b/testdata/language-features/basic-values/infix01.out | |||
@@ -1,3 +1,6 @@ | |||
1 | ------------ desugared source code | ||
2 | fun = \_ -> \_ -> _rhs HNil | ||
3 | value = \(a :: _) (b :: _) -> _rhs (a `fun` b) | ||
1 | main is not found | 4 | main is not found |
2 | ------------ trace | 5 | ------------ trace |
3 | fun :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> ()[0m | 6 | fun :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> ()[0m |
diff --git a/testdata/language-features/basic-values/infix02.out b/testdata/language-features/basic-values/infix02.out index 11e17685..2db04d26 100644 --- a/testdata/language-features/basic-values/infix02.out +++ b/testdata/language-features/basic-values/infix02.out | |||
@@ -1,3 +1,6 @@ | |||
1 | ------------ desugared source code | ||
2 | fun = \_ -> \_ -> \_ -> _rhs HNil | ||
3 | value = \(a :: _) (b :: _) -> _rhs (a `fun` b) | ||
1 | main is not found | 4 | main is not found |
2 | ------------ trace | 5 | ------------ trace |
3 | fun :: [32mforall a b c . [32ma[0;32m -> [32mb[0;32m -> [32mc[0;32m -> ()[0m | 6 | fun :: [32mforall a b c . [32ma[0;32m -> [32mb[0;32m -> [32mc[0;32m -> ()[0m |
diff --git a/testdata/language-features/basic-values/infix03.out b/testdata/language-features/basic-values/infix03.out index 213d9e06..d089f79d 100644 --- a/testdata/language-features/basic-values/infix03.out +++ b/testdata/language-features/basic-values/infix03.out | |||
@@ -1,9 +1,19 @@ | |||
1 | ------------ desugared source code | ||
2 | data D :: Type where | ||
3 | D2 :: HList 'Nil -> HList 'Nil -> D | ||
4 | D3 :: HList 'Nil -> HList 'Nil -> HList 'Nil -> D | ||
5 | d2 = \(a :: _) (b :: _) -> _rhs (a `D2` b) | ||
6 | d3 = \(a :: _) (b :: _) -> _rhs (a `D3` b) | ||
1 | main is not found | 7 | main is not found |
2 | ------------ trace | 8 | ------------ trace |
3 | 'D :: [32mType[0m | 9 | 'D :: [32mType[0m |
4 | D2 :: [32m() -> () -> D[0m | 10 | D2 :: [32m() -> () -> D[0m |
5 | D3 :: [32m() -> () -> () -> D[0m | 11 | D3 :: [32m() -> () -> () -> D[0m |
6 | 'DCase :: [32mforall (a :: D -> Type) -> (forall (b :: ()) (c :: ()) -> [32m[32ma[0;32m [32m('D2 [32mb[0;32m [32mc[0;32m)[0;32m[0;32m) -> (forall (d :: ()) (e :: ()) (f :: ()) -> [32m[32ma[0;32m [32m('D3 [32md[0;32m [32me[0;32m [32mf[0;32m)[0;32m[0;32m) -> forall (g :: D) -> [32m[32ma[0;32m [32m[32mg[0;32m[0;32m[0;32m[0m | 12 | 'DCase |
13 | :: [32mforall (a :: D -> Type) | ||
14 | -> (forall (b :: ()) (c :: ()) -> [32m[32ma[0;32m [32m('D2 [32mb[0;32m [32mc[0;32m)[0;32m[0;32m) | ||
15 | -> (forall (d :: ()) (e :: ()) (f :: ()) -> [32m[32ma[0;32m [32m('D3 [32md[0;32m [32me[0;32m [32mf[0;32m)[0;32m[0;32m) | ||
16 | -> forall (g :: D) -> [32m[32ma[0;32m [32m[32mg[0;32m[0;32m[0;32m[0m | ||
7 | match'D :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32mD[0;32m[0;32m -> forall b -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m[0m | 17 | match'D :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32mD[0;32m[0;32m -> forall b -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m[0m |
8 | d2 :: [32m() -> () -> D[0m | 18 | d2 :: [32m() -> () -> D[0m |
9 | d3 :: [32m() -> () -> () -> D[0m | 19 | d3 :: [32m() -> () -> () -> D[0m |
diff --git a/testdata/language-features/basic-values/lambda01.out b/testdata/language-features/basic-values/lambda01.out index e2c51312..5d57cdfd 100644 --- a/testdata/language-features/basic-values/lambda01.out +++ b/testdata/language-features/basic-values/lambda01.out | |||
@@ -1,9 +1,15 @@ | |||
1 | ------------ desugared source code | ||
2 | fun1 = _rhs \_ -> HNil | ||
3 | fun2 = _rhs \_ -> HNil | ||
4 | fun3 = _rhs \_ -> HNil | ||
5 | fun4 = _rhs \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> HNil | ||
1 | main is not found | 6 | main is not found |
2 | ------------ trace | 7 | ------------ trace |
3 | fun1 :: [32mforall a . [32ma[0;32m -> ()[0m | 8 | fun1 :: [32mforall a . [32ma[0;32m -> ()[0m |
4 | fun2 :: [32mforall a . [32ma[0;32m -> ()[0m | 9 | fun2 :: [32mforall a . [32ma[0;32m -> ()[0m |
5 | fun3 :: [32mforall a . [32ma[0;32m -> ()[0m | 10 | fun3 :: [32mforall a . [32ma[0;32m -> ()[0m |
6 | fun4 :: [32mforall a b c d e f g h i . [32ma[0;32m -> [32mb[0;32m -> [32mc[0;32m -> [32md[0;32m -> [32me[0;32m -> [32mf[0;32m -> [32mg[0;32m -> [32mh[0;32m -> [32mi[0;32m -> ()[0m | 11 | fun4 |
12 | :: [32mforall a b c d e f g h i . [32ma[0;32m -> [32mb[0;32m -> [32mc[0;32m -> [32md[0;32m -> [32me[0;32m -> [32mf[0;32m -> [32mg[0;32m -> [32mh[0;32m -> [32mi[0;32m -> ()[0m | ||
7 | ------------ tooltips | 13 | ------------ tooltips |
8 | testdata/language-features/basic-values/lambda01.lc 1:1-1:5 forall a . a -> () | 14 | testdata/language-features/basic-values/lambda01.lc 1:1-1:5 forall a . a -> () |
9 | testdata/language-features/basic-values/lambda01.lc 1:14-1:16 () | 15 | testdata/language-features/basic-values/lambda01.lc 1:14-1:16 () |
diff --git a/testdata/language-features/basic-values/lambda03.out b/testdata/language-features/basic-values/lambda03.out index 902fdc98..33988c84 100644 --- a/testdata/language-features/basic-values/lambda03.out +++ b/testdata/language-features/basic-values/lambda03.out | |||
@@ -1,3 +1,6 @@ | |||
1 | ------------ desugared source code | ||
2 | fun1 = _rhs \_ (a :: _) -> \_ -> a | ||
3 | fun2 = \(a :: _) -> _rhs \_ -> \_ -> \_ -> a | ||
1 | main is not found | 4 | main is not found |
2 | ------------ trace | 5 | ------------ trace |
3 | fun1 :: [32mforall a b c . [32ma[0;32m -> [32mb[0;32m -> [32mc[0;32m -> [32mb[0;32m[0m | 6 | fun1 :: [32mforall a b c . [32ma[0;32m -> [32mb[0;32m -> [32mc[0;32m -> [32mb[0;32m[0m |
diff --git a/testdata/language-features/basic-values/let01.out b/testdata/language-features/basic-values/let01.out index 36ecf369..24948a10 100644 --- a/testdata/language-features/basic-values/let01.out +++ b/testdata/language-features/basic-values/let01.out | |||
@@ -1,3 +1,9 @@ | |||
1 | ------------ desugared source code | ||
2 | value1 = _rhs \(a := _rhs (fromInt 1)) -> fromInt 1 | ||
3 | value2 = _rhs \(a := _rhs (fromInt 1)) -> fromInt 1 | ||
4 | value3 = _rhs \(a := _rhs (fromInt 1)) (b := _rhs 'c') -> fromInt 1 | ||
5 | value4 = _rhs \(a := _rhs (fromInt 1)) -> fromInt 1 | ||
6 | value5 = _rhs \(a := _rhs (fromInt 1)) (b := _rhs (fromInt 2)) -> fromInt 1 | ||
1 | main is not found | 7 | main is not found |
2 | ------------ trace | 8 | ------------ trace |
3 | value1 :: [32mforall a . [32mNum [32m[32ma[0;32m[0;32m[0;32m => [32ma[0;32m[0m | 9 | value1 :: [32mforall a . [32mNum [32m[32ma[0;32m[0;32m[0;32m => [32ma[0;32m[0m |
diff --git a/testdata/language-features/basic-values/let02.out b/testdata/language-features/basic-values/let02.out index bee7d640..92afbe41 100644 --- a/testdata/language-features/basic-values/let02.out +++ b/testdata/language-features/basic-values/let02.out | |||
@@ -1,3 +1,11 @@ | |||
1 | ------------ desugared source code | ||
2 | value | ||
3 | = _rhs | ||
4 | \(a := _rhs HNil) | ||
5 | (b := _rhs \(d := _rhs 'A') -> HNil) | ||
6 | (c | ||
7 | := _rhs | ||
8 | \(e := _rhs HNil) (f := _rhs (fromInt 1)) (g := _rhs "hello") -> 'B') -> HNil | ||
1 | main is not found | 9 | main is not found |
2 | ------------ trace | 10 | ------------ trace |
3 | value :: [32m()[0m | 11 | value :: [32m()[0m |
diff --git a/testdata/language-features/basic-values/literal01.out b/testdata/language-features/basic-values/literal01.out index abaca3a7..a8328841 100644 --- a/testdata/language-features/basic-values/literal01.out +++ b/testdata/language-features/basic-values/literal01.out | |||
@@ -1,3 +1,12 @@ | |||
1 | ------------ desugared source code | ||
2 | intValue1 = _rhs (fromInt 0) | ||
3 | intValue2 = _rhs (fromInt 1) | ||
4 | intValue3 = _rhs (fromInt 12345) | ||
5 | floatValue1 = _rhs 2.0 | ||
6 | floatValue2 = _rhs 123400.0 | ||
7 | charValue = _rhs 'A' | ||
8 | stringValue1 = _rhs "Hello World" | ||
9 | stringValue2 = _rhs "\nHello World\tagain!\r\n" | ||
1 | main is not found | 10 | main is not found |
2 | ------------ trace | 11 | ------------ trace |
3 | intValue1 :: [32mforall a . [32mNum [32m[32ma[0;32m[0;32m[0;32m => [32ma[0;32m[0m | 12 | intValue1 :: [32mforall a . [32mNum [32m[32ma[0;32m[0;32m[0;32m => [32ma[0;32m[0m |
diff --git a/testdata/language-features/basic-values/operator01.out b/testdata/language-features/basic-values/operator01.out index 597a3a00..deae312b 100644 --- a/testdata/language-features/basic-values/operator01.out +++ b/testdata/language-features/basic-values/operator01.out | |||
@@ -1,3 +1,8 @@ | |||
1 | ------------ desugared source code | ||
2 | #$# = \_ -> \_ -> _rhs HNil | ||
3 | $$# = \_ -> \_ -> _rhs HNil | ||
4 | $$$# = \_ -> \_ -> _rhs HNil | ||
5 | $$$ = \_ -> \_ -> _rhs HNil | ||
1 | main is not found | 6 | main is not found |
2 | ------------ trace | 7 | ------------ trace |
3 | #$# :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> ()[0m | 8 | #$# :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> ()[0m |
diff --git a/testdata/language-features/basic-values/operator05.out b/testdata/language-features/basic-values/operator05.out index 30b3fcac..d6ef392d 100644 --- a/testdata/language-features/basic-values/operator05.out +++ b/testdata/language-features/basic-values/operator05.out | |||
@@ -1,3 +1,5 @@ | |||
1 | ------------ desugared source code | ||
2 | value1 = _rhs \(a := \_ -> \_ -> _rhs HNil) -> a HNil HNil | ||
1 | main is not found | 3 | main is not found |
2 | ------------ trace | 4 | ------------ trace |
3 | value1 :: [32m()[0m | 5 | value1 :: [32m()[0m |
diff --git a/testdata/language-features/basic-values/operator06.out b/testdata/language-features/basic-values/operator06.out index 4fa5381e..0252f155 100644 --- a/testdata/language-features/basic-values/operator06.out +++ b/testdata/language-features/basic-values/operator06.out | |||
@@ -1,3 +1,5 @@ | |||
1 | ------------ desugared source code | ||
2 | value1 = _rhs \(a := \_ -> \_ -> _rhs HNil) -> a HNil HNil | ||
1 | main is not found | 3 | main is not found |
2 | ------------ trace | 4 | ------------ trace |
3 | value1 :: [32m()[0m | 5 | value1 :: [32m()[0m |
diff --git a/testdata/language-features/basic-values/shadowing01.out b/testdata/language-features/basic-values/shadowing01.out index 9a8f5f22..6bddb912 100644 --- a/testdata/language-features/basic-values/shadowing01.out +++ b/testdata/language-features/basic-values/shadowing01.out | |||
@@ -1,3 +1,15 @@ | |||
1 | ------------ desugared source code | ||
2 | value | ||
3 | = _rhs | ||
4 | \(a := _rhs 'A') | ||
5 | (b := _rhs "hello") | ||
6 | (c | ||
7 | := _rhs | ||
8 | \(d := _rhs (fromInt 1)) | ||
9 | (e := _rhs 2.12) | ||
10 | (f | ||
11 | := _rhs | ||
12 | \(g := _rhs HNil) (h := _rhs 'C') (i := _rhs 3.12) -> "world") -> HNil) -> '7' | ||
1 | main is not found | 13 | main is not found |
2 | ------------ trace | 14 | ------------ trace |
3 | value :: [32mChar[0m | 15 | value :: [32mChar[0m |
diff --git a/testdata/language-features/basic-values/shadowing02.out b/testdata/language-features/basic-values/shadowing02.out index d4d4373b..e5eaf957 100644 --- a/testdata/language-features/basic-values/shadowing02.out +++ b/testdata/language-features/basic-values/shadowing02.out | |||
@@ -1,3 +1,19 @@ | |||
1 | ------------ desugared source code | ||
2 | c = _rhs (fromInt 7) | ||
3 | world = _rhs "world" | ||
4 | value2 | ||
5 | = _rhs | ||
6 | \(a := _rhs 'A') | ||
7 | (b := _rhs "hello") | ||
8 | (c := _rhs (fromInt 123)) | ||
9 | (d | ||
10 | := _rhs | ||
11 | \(e := _rhs (fromInt 1)) | ||
12 | (f := _rhs 2.12) | ||
13 | (g | ||
14 | := _rhs | ||
15 | \(h := _rhs HNil) | ||
16 | (i := _rhs 'C') (j := _rhs 3.12) (k := _rhs c) -> world) -> HNil) -> '7' | ||
1 | main is not found | 17 | main is not found |
2 | ------------ trace | 18 | ------------ trace |
3 | c :: [32mforall a . [32mNum [32m[32ma[0;32m[0;32m[0;32m => [32ma[0;32m[0m | 19 | c :: [32mforall a . [32mNum [32m[32ma[0;32m[0;32m[0;32m => [32ma[0;32m[0m |
diff --git a/testdata/language-features/basic-values/shadowing03.out b/testdata/language-features/basic-values/shadowing03.out index 23d28466..7c734e30 100644 --- a/testdata/language-features/basic-values/shadowing03.out +++ b/testdata/language-features/basic-values/shadowing03.out | |||
@@ -1,3 +1,5 @@ | |||
1 | ------------ desugared source code | ||
2 | x = \_ -> \_ -> _rhs HNil | ||
1 | main is not found | 3 | main is not found |
2 | ------------ trace | 4 | ------------ trace |
3 | x :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> ()[0m | 5 | x :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> ()[0m |
diff --git a/testdata/language-features/basic-values/shadowing04.out b/testdata/language-features/basic-values/shadowing04.out index 70a54caa..8cd2c778 100644 --- a/testdata/language-features/basic-values/shadowing04.out +++ b/testdata/language-features/basic-values/shadowing04.out | |||
@@ -1,3 +1,5 @@ | |||
1 | ------------ desugared source code | ||
2 | __ = \_ -> \_ -> _rhs HNil | ||
1 | main is not found | 3 | main is not found |
2 | ------------ trace | 4 | ------------ trace |
3 | __ :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> ()[0m | 5 | __ :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> ()[0m |
diff --git a/testdata/language-features/basic-values/tuple01.out b/testdata/language-features/basic-values/tuple01.out index d3a27511..b1208a3a 100644 --- a/testdata/language-features/basic-values/tuple01.out +++ b/testdata/language-features/basic-values/tuple01.out | |||
@@ -1,3 +1,5 @@ | |||
1 | ------------ desugared source code | ||
2 | unit = _rhs HNil | ||
1 | main is not found | 3 | main is not found |
2 | ------------ trace | 4 | ------------ trace |
3 | unit :: [32m()[0m | 5 | unit :: [32m()[0m |
diff --git a/testdata/language-features/basic-values/tuple02.out b/testdata/language-features/basic-values/tuple02.out index 4e15f913..0419494e 100644 --- a/testdata/language-features/basic-values/tuple02.out +++ b/testdata/language-features/basic-values/tuple02.out | |||
@@ -1,3 +1,9 @@ | |||
1 | ------------ desugared source code | ||
2 | tuple1 | ||
3 | = _rhs | ||
4 | (HCons (fromInt 1) (HCons 2.3 (HCons 'D' (HCons "string" (HCons HNil HNil))))) | ||
5 | tuple2 = _rhs (HCons HNil (HCons HNil HNil)) | ||
6 | tuple3 = _rhs (HCons (HCons "name" (HCons 'c' HNil)) (HCons HNil HNil)) | ||
1 | main is not found | 7 | main is not found |
2 | ------------ trace | 8 | ------------ trace |
3 | tuple1 :: [32mforall a . [32mNum [32m[32ma[0;32m[0;32m[0;32m => ([32ma[0;32m, Float, Char, String, ())[0m | 9 | tuple1 :: [32mforall a . [32mNum [32m[32ma[0;32m[0;32m[0;32m => ([32ma[0;32m, Float, Char, String, ())[0m |
diff --git a/testdata/language-features/basic-values/typesig01.out b/testdata/language-features/basic-values/typesig01.out index c473b40c..491eb5f1 100644 --- a/testdata/language-features/basic-values/typesig01.out +++ b/testdata/language-features/basic-values/typesig01.out | |||
@@ -1,3 +1,6 @@ | |||
1 | ------------ desugared source code | ||
2 | value1 = _rhs 'a' :: Char | ||
3 | value2 = _rhs 'a' :: Char | ||
1 | main is not found | 4 | main is not found |
2 | ------------ trace | 5 | ------------ trace |
3 | value1 :: [32mChar[0m | 6 | value1 :: [32mChar[0m |
diff --git a/testdata/language-features/basic-values/typesig02.out b/testdata/language-features/basic-values/typesig02.out index c1e6361e..e7b64644 100644 --- a/testdata/language-features/basic-values/typesig02.out +++ b/testdata/language-features/basic-values/typesig02.out | |||
@@ -1,3 +1,6 @@ | |||
1 | ------------ desugared source code | ||
2 | value1 = _rhs ('a' :: Char) | ||
3 | value2 = _rhs ('a' :: Char) | ||
1 | main is not found | 4 | main is not found |
2 | ------------ trace | 5 | ------------ trace |
3 | value1 :: [32mChar[0m | 6 | value1 :: [32mChar[0m |
diff --git a/testdata/language-features/basic-values/typesig03.out b/testdata/language-features/basic-values/typesig03.out index 68d312c9..393824b3 100644 --- a/testdata/language-features/basic-values/typesig03.out +++ b/testdata/language-features/basic-values/typesig03.out | |||
@@ -1,3 +1,10 @@ | |||
1 | ------------ desugared source code | ||
2 | fun1 | ||
3 | = (\_ -> \_ -> \_ -> _rhs HNil) | ||
4 | :: forall (a :: _) (b :: _) (c :: _) . a -> b -> c -> HList 'Nil | ||
5 | fun2 | ||
6 | = (\_ -> \_ -> \_ -> _rhs HNil) | ||
7 | :: forall (a :: _) (b :: _) (c :: _) . a -> b -> c -> HList 'Nil | ||
1 | main is not found | 8 | main is not found |
2 | ------------ trace | 9 | ------------ trace |
3 | fun1 :: [32mforall a b c . [32ma[0;32m -> [32mb[0;32m -> [32mc[0;32m -> ()[0m | 10 | fun1 :: [32mforall a b c . [32ma[0;32m -> [32mb[0;32m -> [32mc[0;32m -> ()[0m |
diff --git a/testdata/language-features/basic-values/typesig04.out b/testdata/language-features/basic-values/typesig04.out index 3059a3ac..e6fbc596 100644 --- a/testdata/language-features/basic-values/typesig04.out +++ b/testdata/language-features/basic-values/typesig04.out | |||
@@ -1,3 +1,10 @@ | |||
1 | ------------ desugared source code | ||
2 | fun1 | ||
3 | = (\_ -> \_ -> _rhs HNil) | ||
4 | :: forall (a :: _) (b :: _) (c :: _) . a -> (b -> c) -> HList 'Nil | ||
5 | fun2 | ||
6 | = (\_ -> \_ -> _rhs HNil) | ||
7 | :: forall (a :: _) (b :: _) (c :: _) . a -> (b -> c) -> HList 'Nil | ||
1 | main is not found | 8 | main is not found |
2 | ------------ trace | 9 | ------------ trace |
3 | fun1 :: [32mforall a b c . [32ma[0;32m -> ([32mb[0;32m -> [32mc[0;32m) -> ()[0m | 10 | fun1 :: [32mforall a b c . [32ma[0;32m -> ([32mb[0;32m -> [32mc[0;32m) -> ()[0m |
diff --git a/testdata/language-features/basic-values/typesig05.out b/testdata/language-features/basic-values/typesig05.out index d107f4eb..1f40f653 100644 --- a/testdata/language-features/basic-values/typesig05.out +++ b/testdata/language-features/basic-values/typesig05.out | |||
@@ -1,3 +1,10 @@ | |||
1 | ------------ desugared source code | ||
2 | funL = \(a :: _) -> \_ -> _rhs a | ||
3 | funR = \_ (a :: _) -> _rhs a | ||
4 | value1 = _rhs (funL 'a' "b" :: Char) | ||
5 | value2 = _rhs (funR 'a' "b" :: String) | ||
6 | value3 = _rhs (funL 'a' "b") :: Char | ||
7 | value4 = _rhs (funR 'a' "b") :: String | ||
1 | main is not found | 8 | main is not found |
2 | ------------ trace | 9 | ------------ trace |
3 | funL :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> [32ma[0;32m[0m | 10 | funL :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> [32ma[0;32m[0m |
diff --git a/testdata/language-features/basic-values/typesig06.out b/testdata/language-features/basic-values/typesig06.out index c249026f..6c86ce15 100644 --- a/testdata/language-features/basic-values/typesig06.out +++ b/testdata/language-features/basic-values/typesig06.out | |||
@@ -1,3 +1,8 @@ | |||
1 | ------------ desugared source code | ||
2 | funL = \(a :: _) -> \_ -> _rhs a | ||
3 | <@ = \(a :: _) -> \_ -> _rhs a | ||
4 | value1 = _rhs ("hi" <@ 1.2 :: String) | ||
5 | value2 = _rhs ("hi" `funL` 1.2 :: String) | ||
1 | main is not found | 6 | main is not found |
2 | ------------ trace | 7 | ------------ trace |
3 | funL :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> [32ma[0;32m[0m | 8 | funL :: [32mforall a b . [32ma[0;32m -> [32mb[0;32m -> [32ma[0;32m[0m |
diff --git a/testdata/language-features/basic-values/typesig07.out b/testdata/language-features/basic-values/typesig07.out index 65ce8df7..08742feb 100644 --- a/testdata/language-features/basic-values/typesig07.out +++ b/testdata/language-features/basic-values/typesig07.out | |||
@@ -1,3 +1,10 @@ | |||
1 | ------------ desugared source code | ||
2 | value1 = _rhs (fromInt 1) :: Int | ||
3 | value2 = _rhs (fromInt 2) :: Int | ||
4 | value3 = _rhs (fromInt 3) :: Int | ||
5 | value4 = (\_ -> \_ -> _rhs HNil) :: HList 'Nil -> HList 'Nil -> HList 'Nil | ||
6 | @@@ = (\_ -> \_ -> _rhs HNil) :: HList 'Nil -> HList 'Nil -> HList 'Nil | ||
7 | value6 = (\_ -> \_ -> _rhs HNil) :: HList 'Nil -> HList 'Nil -> HList 'Nil | ||
1 | main is not found | 8 | main is not found |
2 | ------------ trace | 9 | ------------ trace |
3 | value1 :: [32mInt[0m | 10 | value1 :: [32mInt[0m |
diff --git a/testdata/language-features/basic-values/typesyn01.out b/testdata/language-features/basic-values/typesyn01.out index f5bf60cf..3d10ddaa 100644 --- a/testdata/language-features/basic-values/typesyn01.out +++ b/testdata/language-features/basic-values/typesyn01.out | |||
@@ -1,3 +1,5 @@ | |||
1 | ------------ desugared source code | ||
2 | 'MyUnit = _rhs ('HList Nil) | ||
1 | main is not found | 3 | main is not found |
2 | ------------ trace | 4 | ------------ trace |
3 | 'MyUnit :: [32mType[0m | 5 | 'MyUnit :: [32mType[0m |
diff --git a/testdata/language-features/basic-values/typesyn02.out b/testdata/language-features/basic-values/typesyn02.out index 858e7b33..615d97eb 100644 --- a/testdata/language-features/basic-values/typesyn02.out +++ b/testdata/language-features/basic-values/typesyn02.out | |||
@@ -1,3 +1,8 @@ | |||
1 | ------------ desugared source code | ||
2 | 'MyUnit = _rhs ('HList Nil) | ||
3 | fun | ||
4 | = (\_ (a :: _) -> hlistNilCase (_ :: _) (_rhs HNil) a) | ||
5 | :: forall (b :: _) . b -> MyUnit -> MyUnit | ||
1 | main is not found | 6 | main is not found |
2 | ------------ trace | 7 | ------------ trace |
3 | 'MyUnit :: [32mType[0m | 8 | 'MyUnit :: [32mType[0m |
diff --git a/testdata/language-features/basic-values/where01.out b/testdata/language-features/basic-values/where01.out index 11498269..0008aa6a 100644 --- a/testdata/language-features/basic-values/where01.out +++ b/testdata/language-features/basic-values/where01.out | |||
@@ -1,3 +1,15 @@ | |||
1 | ------------ desugared source code | ||
2 | value1 = _rhs \(a := _rhs HNil) -> HNil | ||
3 | value2 = _rhs \(a := _rhs HNil) -> a | ||
4 | value3 = _rhs \(a := _rhs HNil) (b := _rhs HNil) -> a | ||
5 | value4 = _rhs \(a := _rhs HNil) (b := _rhs HNil) -> b | ||
6 | value5 = _rhs \(a := _rhs HNil) (b := _rhs HNil) -> a | ||
7 | value6 = _rhs HNil | ||
8 | value7 = _rhs HNil | ||
9 | value8 = _rhs HNil | ||
10 | value9 = _rhs \(a := _rhs HNil) (b := _rhs HNil) -> a | ||
11 | value10 = _rhs \(a := _rhs HNil) (b := _rhs HNil) -> a | ||
12 | value11 = _rhs \(a := _rhs HNil) (b := _rhs HNil) -> a | ||
1 | main is not found | 13 | main is not found |
2 | ------------ trace | 14 | ------------ trace |
3 | value1 :: [32m()[0m | 15 | value1 :: [32m()[0m |
diff --git a/testdata/language-features/basic-values/where04.out b/testdata/language-features/basic-values/where04.out index 8649acfa..36bc3969 100644 --- a/testdata/language-features/basic-values/where04.out +++ b/testdata/language-features/basic-values/where04.out | |||
@@ -1,3 +1,7 @@ | |||
1 | ------------ desugared source code | ||
2 | value1 = _rhs \(a := _rhs \(b := _rhs HNil) -> b) -> a | ||
3 | value2 = _rhs \(a := _rhs \(b := _rhs HNil) -> b) -> a | ||
4 | value3 = _rhs \(a := _rhs \(b := _rhs HNil) -> b) -> a | ||
1 | main is not found | 5 | main is not found |
2 | ------------ trace | 6 | ------------ trace |
3 | value1 :: [32m()[0m | 7 | value1 :: [32m()[0m |
diff --git a/testdata/language-features/basic-values/where05.out b/testdata/language-features/basic-values/where05.out index 11743f93..ee42956d 100644 --- a/testdata/language-features/basic-values/where05.out +++ b/testdata/language-features/basic-values/where05.out | |||
@@ -1,3 +1,36 @@ | |||
1 | ------------ desugared source code | ||
2 | value1 | ||
3 | = _rhs | ||
4 | ((\(a :: _) -> 'BoolCase | ||
5 | \_ -> _ :: _ | ||
6 | HNil | ||
7 | \(b := _rhs HNil) -> b | ||
8 | (fromInt 1 == a)) | ||
9 | (fromInt 1)) | ||
10 | value2 | ||
11 | = _rhs | ||
12 | ((\(a :: _) -> 'BoolCase | ||
13 | \_ -> _ :: _ | ||
14 | HNil | ||
15 | \(b := _rhs HNil) -> b | ||
16 | (fromInt 1 == a)) | ||
17 | (fromInt 1)) | ||
18 | value3 | ||
19 | = _rhs | ||
20 | ((\(a :: _) -> 'BoolCase | ||
21 | \_ -> _ :: _ | ||
22 | HNil | ||
23 | \(b := _rhs HNil) -> b | ||
24 | (fromInt 1 == a)) | ||
25 | (fromInt 1)) | ||
26 | value4 | ||
27 | = _rhs | ||
28 | \(a := _rhs HNil) -> (\(b :: _) -> 'BoolCase | ||
29 | \_ -> _ :: _ | ||
30 | HNil | ||
31 | a | ||
32 | (fromInt 1 == b)) | ||
33 | (fromInt 1) | ||
1 | main is not found | 34 | main is not found |
2 | ------------ trace | 35 | ------------ trace |
3 | value1 :: [32mforall a . ([32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m) => ()[0m | 36 | value1 :: [32mforall a . ([32mEq [32m[32ma[0;32m[0;32m[0;32m, [32mNum [32m[32ma[0;32m[0;32m[0;32m) => ()[0m |
diff --git a/testdata/language-features/basic-values/wildcard01.out b/testdata/language-features/basic-values/wildcard01.out index 891a7edd..86b6cae7 100644 --- a/testdata/language-features/basic-values/wildcard01.out +++ b/testdata/language-features/basic-values/wildcard01.out | |||
@@ -1,3 +1,5 @@ | |||
1 | ------------ desugared source code | ||
2 | funUnit = \_ -> _rhs HNil | ||
1 | main is not found | 3 | main is not found |
2 | ------------ trace | 4 | ------------ trace |
3 | funUnit :: [32mforall a . [32ma[0;32m -> ()[0m | 5 | funUnit :: [32mforall a . [32ma[0;32m -> ()[0m |