diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-04-30 00:47:07 +0200 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-04-30 00:47:07 +0200 |
commit | 1fd867e5beea5b4197f300e2e964c0f6b0035830 (patch) | |
tree | 61102cad73ffc7efdbf4ebf589f8ebd7720b3f82 /testdata/language-features | |
parent | b08f6a129c452526b7c2667dcd629028d66ebf0a (diff) |
fix pretty print syntax
Diffstat (limited to 'testdata/language-features')
5 files changed, 14 insertions, 14 deletions
diff --git a/testdata/language-features/adt/adt02.reject.out b/testdata/language-features/adt/adt02.reject.out index 44db093f..6be18ea8 100644 --- a/testdata/language-features/adt/adt02.reject.out +++ b/testdata/language-features/adt/adt02.reject.out | |||
@@ -8,8 +8,8 @@ in proj | |||
8 | 'Data3 :: [32mType[0m | 8 | 'Data3 :: [32mType[0m |
9 | Data3 :: [32m'Bool -> 'Char -> 'Bool -> 'Data3[0m | 9 | Data3 :: [32m'Bool -> 'Char -> 'Bool -> 'Data3[0m |
10 | Data31 :: [32m'Int -> 'String -> 'Int -> 'Data3[0m | 10 | Data31 :: [32m'Int -> 'String -> 'Int -> 'Data3[0m |
11 | 'Data3Case :: [32m([32ma[0;32m :: 'Data3 -> Type) -> (([32mb[0;32m :: 'Bool) -> ([32mc[0;32m :: 'Char) -> ([32md[0;32m :: 'Bool) -> [32m[32ma[0;32m [32m(Data3 [32mb[0;32m [32mc[0;32m [32md[0;32m)[0;32m[0;32m) -> (([32me[0;32m :: 'Int) -> ([32mf[0;32m :: 'String) -> ([32mg[0;32m :: 'Int) -> [32m[32ma[0;32m [32m(Data31 [32me[0;32m [32mf[0;32m [32mg[0;32m)[0;32m[0;32m) -> ([32mh[0;32m :: 'Data3) -> [32m[32ma[0;32m [32m[32mh[0;32m[0;32m[0;32m[0m | 11 | 'Data3Case :: [32mforall (a :: 'Data3 -> Type) -> (forall (b :: 'Bool) (c :: 'Char) (d :: 'Bool) -> [32m[32ma[0;32m [32m(Data3 [32mb[0;32m [32mc[0;32m [32md[0;32m)[0;32m[0;32m) -> (forall (e :: 'Int) (f :: 'String) (g :: 'Int) -> [32m[32ma[0;32m [32m(Data31 [32me[0;32m [32mf[0;32m [32mg[0;32m)[0;32m[0;32m) -> forall (h :: 'Data3) -> [32m[32ma[0;32m [32m[32mh[0;32m[0;32m[0;32m[0m |
12 | match'Data3 :: [32m([32ma[0;32m :: Type -> Type) -> [32m[32ma[0;32m [32m'Data3[0;32m[0;32m -> ([32mb[0;32m :: Type) -> [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 | 12 | match'Data3 :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32m'Data3[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 |
13 | !type error: can not unify | 13 | !type error: can not unify |
14 | [32m'Bool[0m | 14 | [32m'Bool[0m |
15 | with | 15 | with |
diff --git a/testdata/language-features/adt/gadt03.reject.out b/testdata/language-features/adt/gadt03.reject.out index 9d9361c0..8aad9b35 100644 --- a/testdata/language-features/adt/gadt03.reject.out +++ b/testdata/language-features/adt/gadt03.reject.out | |||
@@ -2,8 +2,8 @@ illegal data definition (parameters are not uniform) | |||
2 | ------------ trace | 2 | ------------ trace |
3 | 'M2 :: [32mType -> 'String -> Type[0m | 3 | 'M2 :: [32mType -> 'String -> Type[0m |
4 | Value2 :: [32mforall a . [32ma[0;32m -> forall (b :: 'String) . 'M2 [32ma[0;32m [32mb[0;32m[0m | 4 | Value2 :: [32mforall a . [32ma[0;32m -> forall (b :: 'String) . 'M2 [32ma[0;32m [32mb[0;32m[0m |
5 | 'M2Case :: [32mforall a . ([32mb[0;32m :: ([32mc[0;32m :: 'String) -> 'M2 [32ma[0;32m [32mc[0;32m -> Type) -> (([32md[0;32m :: [32ma[0;32m) -> forall (e :: 'String) . [32m[32m[32mb[0;32m [32m[32me[0;32m[0;32m[0;32m [32m(Value2 [32md[0;32m [32me[0;32m)[0;32m[0;32m) -> forall (f :: 'String) . ([32mg[0;32m :: 'M2 [32ma[0;32m [32mf[0;32m) -> [32m[32m[32mb[0;32m [32m[32mf[0;32m[0;32m[0;32m [32m[32mg[0;32m[0;32m[0;32m[0m | 5 | 'M2Case :: [32mforall a . forall (b :: forall (c :: 'String) -> 'M2 [32ma[0;32m [32mc[0;32m -> Type) -> (forall (d :: [32ma[0;32m) -> forall (e :: 'String) . [32m[32m[32mb[0;32m [32m[32me[0;32m[0;32m[0;32m [32m(Value2 [32md[0;32m [32me[0;32m)[0;32m[0;32m) -> forall (f :: 'String) . forall (g :: 'M2 [32ma[0;32m [32mf[0;32m) -> [32m[32m[32mb[0;32m [32m[32mf[0;32m[0;32m[0;32m [32m[32mg[0;32m[0;32m[0;32m[0m |
6 | match'M2 :: [32m([32ma[0;32m :: Type -> Type) -> (([32mb[0;32m :: Type) -> ([32mc[0;32m :: 'String) -> [32m[32ma[0;32m [32m('M2 [32mb[0;32m [32mc[0;32m)[0;32m[0;32m) -> ([32md[0;32m :: Type) -> [32m[32ma[0;32m [32m[32md[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32md[0;32m[0;32m[0;32m[0m | 6 | match'M2 :: [32mforall (a :: Type -> Type) -> (forall b (c :: 'String) -> [32m[32ma[0;32m [32m('M2 [32mb[0;32m [32mc[0;32m)[0;32m[0;32m) -> forall d -> [32m[32ma[0;32m [32m[32md[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32md[0;32m[0;32m[0;32m[0m |
7 | 'M3 :: [32mType -> 'String -> Type[0m | 7 | 'M3 :: [32mType -> 'String -> Type[0m |
8 | !illegal data definition (parameters are not uniform) | 8 | !illegal data definition (parameters are not uniform) |
9 | ------------ tooltips | 9 | ------------ tooltips |
diff --git a/testdata/language-features/adt/gadt04.reject.out b/testdata/language-features/adt/gadt04.reject.out index fc2b7c30..4efb2a15 100644 --- a/testdata/language-features/adt/gadt04.reject.out +++ b/testdata/language-features/adt/gadt04.reject.out | |||
@@ -7,8 +7,8 @@ and at testdata/language-features/adt/gadt04.reject.lc:3:3: | |||
7 | ------------ trace | 7 | ------------ trace |
8 | 'M :: [32mType -> 'String -> Type[0m | 8 | 'M :: [32mType -> 'String -> Type[0m |
9 | Value :: [32mforall a . [32ma[0;32m -> forall (b :: 'String) . 'M [32ma[0;32m [32mb[0;32m[0m | 9 | Value :: [32mforall a . [32ma[0;32m -> forall (b :: 'String) . 'M [32ma[0;32m [32mb[0;32m[0m |
10 | 'MCase :: [32m([32ma[0;32m :: ([32mb[0;32m :: Type) -> ([32mc[0;32m :: 'String) -> 'M [32mb[0;32m [32mc[0;32m -> Type) -> (forall d . ([32me[0;32m :: [32md[0;32m) -> forall (f :: 'String) . [32m[32m[32m[32ma[0;32m [32m[32md[0;32m[0;32m[0;32m [32m[32mf[0;32m[0;32m[0;32m [32m(Value [32md[0;32m [32me[0;32m [32mf[0;32m)[0;32m[0;32m) -> forall g (h :: 'String) . ([32mi[0;32m :: 'M [32mg[0;32m [32mh[0;32m) -> [32m[32m[32m[32ma[0;32m [32m[32mg[0;32m[0;32m[0;32m [32m[32mh[0;32m[0;32m[0;32m [32m[32mi[0;32m[0;32m[0;32m[0m | 10 | 'MCase :: [32mforall (a :: forall b (c :: 'String) -> 'M [32mb[0;32m [32mc[0;32m -> Type) -> (forall d . forall (e :: [32md[0;32m) -> forall (f :: 'String) . [32m[32m[32m[32ma[0;32m [32m[32md[0;32m[0;32m[0;32m [32m[32mf[0;32m[0;32m[0;32m [32m(Value [32md[0;32m [32me[0;32m [32mf[0;32m)[0;32m[0;32m) -> forall g (h :: 'String) . forall (i :: 'M [32mg[0;32m [32mh[0;32m) -> [32m[32m[32m[32ma[0;32m [32m[32mg[0;32m[0;32m[0;32m [32m[32mh[0;32m[0;32m[0;32m [32m[32mi[0;32m[0;32m[0;32m[0m |
11 | match'M :: [32m([32ma[0;32m :: Type -> Type) -> (([32mb[0;32m :: Type) -> ([32mc[0;32m :: 'String) -> [32m[32ma[0;32m [32m('M [32mb[0;32m [32mc[0;32m)[0;32m[0;32m) -> ([32md[0;32m :: Type) -> [32m[32ma[0;32m [32m[32md[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32md[0;32m[0;32m[0;32m[0m | 11 | match'M :: [32mforall (a :: Type -> Type) -> (forall b (c :: 'String) -> [32m[32ma[0;32m [32m('M [32mb[0;32m [32mc[0;32m)[0;32m[0;32m) -> forall d -> [32m[32ma[0;32m [32m[32md[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32md[0;32m[0;32m[0;32m[0m |
12 | 'M2 :: [32mType -> 'String -> Type[0m | 12 | 'M2 :: [32mType -> 'String -> Type[0m |
13 | Value :: [32mforall a . [32ma[0;32m -> forall (b :: 'String) . 'M2 [32ma[0;32m [32mb[0;32m[0m | 13 | Value :: [32mforall a . [32ma[0;32m -> forall (b :: 'String) . 'M2 [32ma[0;32m [32mb[0;32m[0m |
14 | !already defined Value at testdata/language-features/adt/gadt04.reject.lc:6:3: | 14 | !already defined Value at testdata/language-features/adt/gadt04.reject.lc:6:3: |
diff --git a/testdata/language-features/basic-values/data01.out b/testdata/language-features/basic-values/data01.out index affad824..b429a33b 100644 --- a/testdata/language-features/basic-values/data01.out +++ b/testdata/language-features/basic-values/data01.out | |||
@@ -4,20 +4,20 @@ main is not found | |||
4 | B :: [32m'A[0m | 4 | B :: [32m'A[0m |
5 | C :: [32m'A[0m | 5 | C :: [32m'A[0m |
6 | D :: [32m'A[0m | 6 | D :: [32m'A[0m |
7 | 'ACase :: [32m([32ma[0;32m :: 'A -> Type) -> [32m[32ma[0;32m [32mB[0;32m[0;32m -> [32m[32ma[0;32m [32mC[0;32m[0;32m -> [32m[32ma[0;32m [32mD[0;32m[0;32m -> ([32mb[0;32m :: 'A) -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m[0m | 7 | 'ACase :: [32mforall (a :: 'A -> Type) -> [32m[32ma[0;32m [32mB[0;32m[0;32m -> [32m[32ma[0;32m [32mC[0;32m[0;32m -> [32m[32ma[0;32m [32mD[0;32m[0;32m -> forall (b :: 'A) -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m[0m |
8 | match'A :: [32m([32ma[0;32m :: Type -> Type) -> [32m[32ma[0;32m [32m'A[0;32m[0;32m -> ([32mb[0;32m :: Type) -> [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 | match'A :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32m'A[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 | 9 | 'E :: [32mType[0m |
10 | F :: [32m'E[0m | 10 | F :: [32m'E[0m |
11 | G :: [32m() -> 'E[0m | 11 | G :: [32m() -> 'E[0m |
12 | H :: [32m'E[0m | 12 | H :: [32m'E[0m |
13 | 'ECase :: [32m([32ma[0;32m :: 'E -> Type) -> [32m[32ma[0;32m [32mF[0;32m[0;32m -> (([32mb[0;32m :: ()) -> [32m[32ma[0;32m [32m(G [32mb[0;32m)[0;32m[0;32m) -> [32m[32ma[0;32m [32mH[0;32m[0;32m -> ([32mc[0;32m :: 'E) -> [32m[32ma[0;32m [32m[32mc[0;32m[0;32m[0;32m[0m | 13 | 'ECase :: [32mforall (a :: 'E -> Type) -> [32m[32ma[0;32m [32mF[0;32m[0;32m -> (forall (b :: ()) -> [32m[32ma[0;32m [32m(G [32mb[0;32m)[0;32m[0;32m) -> [32m[32ma[0;32m [32mH[0;32m[0;32m -> forall (c :: 'E) -> [32m[32ma[0;32m [32m[32mc[0;32m[0;32m[0;32m[0m |
14 | match'E :: [32m([32ma[0;32m :: Type -> Type) -> [32m[32ma[0;32m [32m'E[0;32m[0;32m -> ([32mb[0;32m :: Type) -> [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 | 14 | match'E :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32m'E[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 | 15 | 'D1 :: [32mType[0m |
16 | C1 :: [32m'D1[0m | 16 | C1 :: [32m'D1[0m |
17 | C2 :: [32m() -> 'D1[0m | 17 | C2 :: [32m() -> 'D1[0m |
18 | C3 :: [32m'D1[0m | 18 | C3 :: [32m'D1[0m |
19 | 'D1Case :: [32m([32ma[0;32m :: 'D1 -> Type) -> [32m[32ma[0;32m [32mC1[0;32m[0;32m -> (([32mb[0;32m :: ()) -> [32m[32ma[0;32m [32m(C2 [32mb[0;32m)[0;32m[0;32m) -> [32m[32ma[0;32m [32mC3[0;32m[0;32m -> ([32mc[0;32m :: 'D1) -> [32m[32ma[0;32m [32m[32mc[0;32m[0;32m[0;32m[0m | 19 | 'D1Case :: [32mforall (a :: 'D1 -> Type) -> [32m[32ma[0;32m [32mC1[0;32m[0;32m -> (forall (b :: ()) -> [32m[32ma[0;32m [32m(C2 [32mb[0;32m)[0;32m[0;32m) -> [32m[32ma[0;32m [32mC3[0;32m[0;32m -> forall (c :: 'D1) -> [32m[32ma[0;32m [32m[32mc[0;32m[0;32m[0;32m[0m |
20 | match'D1 :: [32m([32ma[0;32m :: Type -> Type) -> [32m[32ma[0;32m [32m'D1[0;32m[0;32m -> ([32mb[0;32m :: Type) -> [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 | 20 | match'D1 :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32m'D1[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 | 21 | ------------ tooltips |
22 | testdata/language-features/basic-values/data01.lc 1:6-1:7 Type | 22 | testdata/language-features/basic-values/data01.lc 1:6-1:7 Type |
23 | testdata/language-features/basic-values/data01.lc 1:6-1:13 Type | 23 | testdata/language-features/basic-values/data01.lc 1:6-1:13 Type |
diff --git a/testdata/language-features/basic-values/infix03.out b/testdata/language-features/basic-values/infix03.out index dcab8247..3420e35e 100644 --- a/testdata/language-features/basic-values/infix03.out +++ b/testdata/language-features/basic-values/infix03.out | |||
@@ -3,8 +3,8 @@ main is not found | |||
3 | 'D :: [32mType[0m | 3 | 'D :: [32mType[0m |
4 | D2 :: [32m() -> () -> 'D[0m | 4 | D2 :: [32m() -> () -> 'D[0m |
5 | D3 :: [32m() -> () -> () -> 'D[0m | 5 | D3 :: [32m() -> () -> () -> 'D[0m |
6 | 'DCase :: [32m([32ma[0;32m :: 'D -> Type) -> (([32mb[0;32m :: ()) -> ([32mc[0;32m :: ()) -> [32m[32ma[0;32m [32m(D2 [32mb[0;32m [32mc[0;32m)[0;32m[0;32m) -> (([32md[0;32m :: ()) -> ([32me[0;32m :: ()) -> ([32mf[0;32m :: ()) -> [32m[32ma[0;32m [32m(D3 [32md[0;32m [32me[0;32m [32mf[0;32m)[0;32m[0;32m) -> ([32mg[0;32m :: 'D) -> [32m[32ma[0;32m [32m[32mg[0;32m[0;32m[0;32m[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 |
7 | match'D :: [32m([32ma[0;32m :: Type -> Type) -> [32m[32ma[0;32m [32m'D[0;32m[0;32m -> ([32mb[0;32m :: Type) -> [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 | 7 | match'D :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32m'D[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 | 8 | d2 :: [32m() -> () -> 'D[0m |
9 | d3 :: [32m() -> () -> () -> 'D[0m | 9 | d3 :: [32m() -> () -> () -> 'D[0m |
10 | ------------ tooltips | 10 | ------------ tooltips |