diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-04-28 02:01:29 +0200 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-04-28 02:01:29 +0200 |
commit | 7e9105793bd0d5ff7197a5860ac5339dea677e0e (patch) | |
tree | fa003b495b78a8b5cb5e6505c72a32bc6e80e1b3 /testdata/language-features/adt | |
parent | a23ba9fced413f1b63640ba9bd81686a7eb59ee1 (diff) |
switch to ansi-wl-pprint
Diffstat (limited to 'testdata/language-features/adt')
-rw-r--r-- | testdata/language-features/adt/adt01.out | 2 | ||||
-rw-r--r-- | testdata/language-features/adt/adt02.out | 2 | ||||
-rw-r--r-- | testdata/language-features/adt/adt02.reject.out | 18 | ||||
-rw-r--r-- | testdata/language-features/adt/adt03.reject.out | 2 | ||||
-rw-r--r-- | testdata/language-features/adt/adt04.reject.out | 2 | ||||
-rw-r--r-- | testdata/language-features/adt/adt05.out | 2 | ||||
-rw-r--r-- | testdata/language-features/adt/gadt01.out | 2 | ||||
-rw-r--r-- | testdata/language-features/adt/gadt01.reject.out | 2 | ||||
-rw-r--r-- | testdata/language-features/adt/gadt03.reject.out | 10 | ||||
-rw-r--r-- | testdata/language-features/adt/gadt04.reject.out | 12 |
10 files changed, 27 insertions, 27 deletions
diff --git a/testdata/language-features/adt/adt01.out b/testdata/language-features/adt/adt01.out index 65af037c..f832724c 100644 --- a/testdata/language-features/adt/adt01.out +++ b/testdata/language-features/adt/adt01.out | |||
@@ -1 +1 @@ | |||
[32mTrue[m \ No newline at end of file | [32mTrue[0m \ No newline at end of file | ||
diff --git a/testdata/language-features/adt/adt02.out b/testdata/language-features/adt/adt02.out index 65af037c..f832724c 100644 --- a/testdata/language-features/adt/adt02.out +++ b/testdata/language-features/adt/adt02.out | |||
@@ -1 +1 @@ | |||
[32mTrue[m \ No newline at end of file | [32mTrue[0m \ No newline at end of file | ||
diff --git a/testdata/language-features/adt/adt02.reject.out b/testdata/language-features/adt/adt02.reject.out index 48ca3cb9..ab363b68 100644 --- a/testdata/language-features/adt/adt02.reject.out +++ b/testdata/language-features/adt/adt02.reject.out | |||
@@ -1,20 +1,20 @@ | |||
1 | type error: can not unify | 1 | type error: can not unify |
2 | [32m'Bool[m | 2 | [32m'Bool[0m |
3 | with | 3 | with |
4 | [32m'Int[m | 4 | [32m'Int[0m |
5 | 5 | ||
6 | in proj | 6 | in proj |
7 | 7 | ||
8 | ------------ trace | 8 | ------------ trace |
9 | 'Data3 :: [32mType[39m[K | 9 | 'Data3 :: [32mType[0m |
10 | Data3 :: [32m'Bool -> 'Char -> 'Bool->'Data3[39m[K | 10 | Data3 :: [32m'Bool -> 'Char -> 'Bool->'Data3[0m |
11 | Data31 :: [32m'Int -> 'String -> 'Int->'Data3[39m[K | 11 | Data31 :: [32m'Int -> 'String -> 'Int->'Data3[0m |
12 | 'Data3Case :: [32m(a : 'Data3->Type) -> ((b:'Bool) -> (c:'Char) -> (d:'Bool) -> a (Data3 b c d)) -> ((e:'Int) -> (f:'String) -> (g:'Int) -> a (Data31 e f g)) -> (h:'Data3) -> a h[39m[K | 12 | '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 |
13 | match'Data3 :: [32m(a : Type->Type) -> a 'Data3 -> (b:Type) -> a b -> a b[39m[K | 13 | 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 |
14 | !type error: can not unify | 14 | !type error: can not unify |
15 | [32m'Bool[m | 15 | [32m'Bool[0m |
16 | with | 16 | with |
17 | [32m'Int[m | 17 | [32m'Int[0m |
18 | 18 | ||
19 | in proj | 19 | in proj |
20 | 20 | ||
diff --git a/testdata/language-features/adt/adt03.reject.out b/testdata/language-features/adt/adt03.reject.out index 0091dc83..70c0c4e7 100644 --- a/testdata/language-features/adt/adt03.reject.out +++ b/testdata/language-features/adt/adt03.reject.out | |||
@@ -2,7 +2,7 @@ can't find: a in testdata/language-features/adt/adt03.reject.lc:2:20: | |||
2 | data Data3 = Data3 a b c | 2 | data Data3 = Data3 a b c |
3 | ^ | 3 | ^ |
4 | ------------ trace | 4 | ------------ trace |
5 | 'Data3 :: [32mType[39m[K | 5 | 'Data3 :: [32mType[0m |
6 | !can't find: a in testdata/language-features/adt/adt03.reject.lc:2:20: | 6 | !can't find: a in testdata/language-features/adt/adt03.reject.lc:2:20: |
7 | data Data3 = Data3 a b c | 7 | data Data3 = Data3 a b c |
8 | ^ | 8 | ^ |
diff --git a/testdata/language-features/adt/adt04.reject.out b/testdata/language-features/adt/adt04.reject.out index bae22981..85b91c2c 100644 --- a/testdata/language-features/adt/adt04.reject.out +++ b/testdata/language-features/adt/adt04.reject.out | |||
@@ -2,7 +2,7 @@ can't find: a in testdata/language-features/adt/adt04.reject.lc:2:27: | |||
2 | data Data3 = Data3 { x :: a , y :: b , z :: c } | 2 | data Data3 = Data3 { x :: a , y :: b , z :: c } |
3 | ^ | 3 | ^ |
4 | ------------ trace | 4 | ------------ trace |
5 | 'Data3 :: [32mType[39m[K | 5 | 'Data3 :: [32mType[0m |
6 | !can't find: a in testdata/language-features/adt/adt04.reject.lc:2:27: | 6 | !can't find: a in testdata/language-features/adt/adt04.reject.lc:2:27: |
7 | data Data3 = Data3 { x :: a , y :: b , z :: c } | 7 | data Data3 = Data3 { x :: a , y :: b , z :: c } |
8 | ^ | 8 | ^ |
diff --git a/testdata/language-features/adt/adt05.out b/testdata/language-features/adt/adt05.out index 97b40b5c..bedb86f2 100644 --- a/testdata/language-features/adt/adt05.out +++ b/testdata/language-features/adt/adt05.out | |||
@@ -1 +1 @@ | |||
[32m[32mmain[m[m \ No newline at end of file | [32m[32mmain[0;32m[0m \ No newline at end of file | ||
diff --git a/testdata/language-features/adt/gadt01.out b/testdata/language-features/adt/gadt01.out index 65af037c..f832724c 100644 --- a/testdata/language-features/adt/gadt01.out +++ b/testdata/language-features/adt/gadt01.out | |||
@@ -1 +1 @@ | |||
[32mTrue[m \ No newline at end of file | [32mTrue[0m \ No newline at end of file | ||
diff --git a/testdata/language-features/adt/gadt01.reject.out b/testdata/language-features/adt/gadt01.reject.out index a993010b..39a78fe6 100644 --- a/testdata/language-features/adt/gadt01.reject.out +++ b/testdata/language-features/adt/gadt01.reject.out | |||
@@ -1,6 +1,6 @@ | |||
1 | illegal data definition (parameters are not uniform) | 1 | illegal data definition (parameters are not uniform) |
2 | ------------ trace | 2 | ------------ trace |
3 | 'M3 :: [32mType -> 'String->Type[39m[K | 3 | 'M3 :: [32mType -> 'String->Type[0m |
4 | !illegal data definition (parameters are not uniform) | 4 | !illegal data definition (parameters are not uniform) |
5 | ------------ tooltips | 5 | ------------ tooltips |
6 | testdata/language-features/adt/gadt01.reject.lc 5:6-5:8 Type -> String->Type | 6 | testdata/language-features/adt/gadt01.reject.lc 5:6-5:8 Type -> String->Type |
diff --git a/testdata/language-features/adt/gadt03.reject.out b/testdata/language-features/adt/gadt03.reject.out index cb6cd714..da32d15b 100644 --- a/testdata/language-features/adt/gadt03.reject.out +++ b/testdata/language-features/adt/gadt03.reject.out | |||
@@ -1,10 +1,10 @@ | |||
1 | illegal data definition (parameters are not uniform) | 1 | illegal data definition (parameters are not uniform) |
2 | ------------ trace | 2 | ------------ trace |
3 | 'M2 :: [32mType -> 'String->Type[39m[K | 3 | 'M2 :: [32mType -> 'String->Type[0m |
4 | Value2 :: [32m{a} -> a -> {b:'String} -> 'M2 a b[39m[K | 4 | Value2 :: [32m{[32ma[0;32m} -> [32ma[0;32m -> {[32mb[0;32m:'String} -> 'M2 [32ma[0;32m [32mb[0;32m[0m |
5 | 'M2Case :: [32m{a} -> (b : (c:'String) -> 'M2 a c -> Type) -> ((d:a) -> {e:'String} -> b e (Value2 d e)) -> {f:'String} -> (g : 'M2 a f) -> b f g[39m[K | 5 | 'M2Case :: [32m{[32ma[0;32m} -> ([32mb[0;32m : ([32mc[0;32m:'String) -> 'M2 [32ma[0;32m [32mc[0;32m -> Type) -> (([32md[0;32m:[32ma[0;32m) -> {[32me[0;32m:'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) -> {[32mf[0;32m:'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 |
6 | match'M2 :: [32m(a : Type->Type) -> ((b:Type) -> (c:'String) -> a ('M2 b c)) -> (d:Type) -> a d -> a d[39m[K | 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 |
7 | 'M3 :: [32mType -> 'String->Type[39m[K | 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 |
10 | testdata/language-features/adt/gadt03.reject.lc 2:6-2:8 Type | Type -> String->Type | 10 | testdata/language-features/adt/gadt03.reject.lc 2:6-2:8 Type | Type -> String->Type |
diff --git a/testdata/language-features/adt/gadt04.reject.out b/testdata/language-features/adt/gadt04.reject.out index 1871c4aa..a1aa694f 100644 --- a/testdata/language-features/adt/gadt04.reject.out +++ b/testdata/language-features/adt/gadt04.reject.out | |||
@@ -5,12 +5,12 @@ already defined Value at testdata/language-features/adt/gadt04.reject.lc:6:3: | |||
5 | Value :: a -> forall m . M a m | 5 | Value :: a -> forall m . M a m |
6 | ^^^^^ | 6 | ^^^^^ |
7 | ------------ trace | 7 | ------------ trace |
8 | 'M :: [32mType -> 'String->Type[39m[K | 8 | 'M :: [32mType -> 'String->Type[0m |
9 | Value :: [32m{a} -> a -> {b:'String} -> 'M a b[39m[K | 9 | Value :: [32m{[32ma[0;32m} -> [32ma[0;32m -> {[32mb[0;32m:'String} -> 'M [32ma[0;32m [32mb[0;32m[0m |
10 | 'MCase :: [32m(a : (b:Type) -> (c:'String) -> 'M b c -> Type) -> ({d} -> (e:d) -> {f:'String} -> a d f (Value d e f)) -> {g} -> {h:'String} -> (i : 'M g h) -> a g h i[39m[K | 10 | 'MCase :: [32m([32ma[0;32m : ([32mb[0;32m:Type) -> ([32mc[0;32m:'String) -> 'M [32mb[0;32m [32mc[0;32m -> Type) -> ({[32md[0;32m} -> ([32me[0;32m:[32md[0;32m) -> {[32mf[0;32m:'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) -> {[32mg[0;32m} -> {[32mh[0;32m:'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 |
11 | match'M :: [32m(a : Type->Type) -> ((b:Type) -> (c:'String) -> a ('M b c)) -> (d:Type) -> a d -> a d[39m[K | 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 |
12 | 'M2 :: [32mType -> 'String->Type[39m[K | 12 | 'M2 :: [32mType -> 'String->Type[0m |
13 | Value :: [32m{a} -> a -> {b:'String} -> 'M2 a b[39m[K | 13 | Value :: [32m{[32ma[0;32m} -> [32ma[0;32m -> {[32mb[0;32m:'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: |
15 | Value :: a -> forall m . M2 a m | 15 | Value :: a -> forall m . M2 a m |
16 | ^^^^^ | 16 | ^^^^^ |