summaryrefslogtreecommitdiff
path: root/testdata/language-features/adt
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-04-28 02:01:29 +0200
committerPéter Diviánszky <divipp@gmail.com>2016-04-28 02:01:29 +0200
commit7e9105793bd0d5ff7197a5860ac5339dea677e0e (patch)
treefa003b495b78a8b5cb5e6505c72a32bc6e80e1b3 /testdata/language-features/adt
parenta23ba9fced413f1b63640ba9bd81686a7eb59ee1 (diff)
switch to ansi-wl-pprint
Diffstat (limited to 'testdata/language-features/adt')
-rw-r--r--testdata/language-features/adt/adt01.out2
-rw-r--r--testdata/language-features/adt/adt02.out2
-rw-r--r--testdata/language-features/adt/adt02.reject.out18
-rw-r--r--testdata/language-features/adt/adt03.reject.out2
-rw-r--r--testdata/language-features/adt/adt04.reject.out2
-rw-r--r--testdata/language-features/adt/adt05.out2
-rw-r--r--testdata/language-features/adt/gadt01.out2
-rw-r--r--testdata/language-features/adt/gadt01.reject.out2
-rw-r--r--testdata/language-features/adt/gadt03.reject.out10
-rw-r--r--testdata/language-features/adt/gadt04.reject.out12
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 @@
True \ No newline at end of file True \ 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 @@
True \ No newline at end of file True \ 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 @@
1type error: can not unify 1type error: can not unify
2'Bool 2'Bool
3with 3with
4'Int 4'Int
5 5
6in proj 6in proj
7 7
8------------ trace 8------------ trace
9'Data3 :: Type 9'Data3 :: Type
10Data3 :: 'Bool -> 'Char -> 'Bool->'Data3 10Data3 :: 'Bool -> 'Char -> 'Bool->'Data3
11Data31 :: 'Int -> 'String -> 'Int->'Data3 11Data31 :: 'Int -> 'String -> 'Int->'Data3
12'Data3Case :: (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 12'Data3Case :: (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
13match'Data3 :: (a : Type->Type) -> a 'Data3 -> (b:Type) -> a b -> a b 13match'Data3 :: (a : Type->Type) -> a 'Data3 -> (b:Type) -> a b -> a b
14!type error: can not unify 14!type error: can not unify
15'Bool 15'Bool
16with 16with
17'Int 17'Int
18 18
19in proj 19in 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:
2data Data3 = Data3 a b c 2data Data3 = Data3 a b c
3 ^ 3 ^
4------------ trace 4------------ trace
5'Data3 :: Type 5'Data3 :: Type
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:
7data Data3 = Data3 a b c 7data 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:
2data Data3 = Data3 { x :: a , y :: b , z :: c } 2data Data3 = Data3 { x :: a , y :: b , z :: c }
3 ^ 3 ^
4------------ trace 4------------ trace
5'Data3 :: Type 5'Data3 :: Type
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:
7data Data3 = Data3 { x :: a , y :: b , z :: c } 7data 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 @@
main \ No newline at end of file main \ 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 @@
True \ No newline at end of file True \ 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 @@
1illegal data definition (parameters are not uniform) 1illegal data definition (parameters are not uniform)
2------------ trace 2------------ trace
3'M3 :: Type -> 'String->Type 3'M3 :: Type -> 'String->Type
4!illegal data definition (parameters are not uniform) 4!illegal data definition (parameters are not uniform)
5------------ tooltips 5------------ tooltips
6testdata/language-features/adt/gadt01.reject.lc 5:6-5:8 Type -> String->Type 6testdata/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 @@
1illegal data definition (parameters are not uniform) 1illegal data definition (parameters are not uniform)
2------------ trace 2------------ trace
3'M2 :: Type -> 'String->Type 3'M2 :: Type -> 'String->Type
4Value2 :: {a} -> a -> {b:'String} -> 'M2 a b 4Value2 :: {a} -> a -> {b:'String} -> 'M2 a b
5'M2Case :: {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 5'M2Case :: {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
6match'M2 :: (a : Type->Type) -> ((b:Type) -> (c:'String) -> a ('M2 b c)) -> (d:Type) -> a d -> a d 6match'M2 :: (a : Type->Type) -> ((b:Type) -> (c:'String) -> a ('M2 b c)) -> (d:Type) -> a d -> a d
7'M3 :: Type -> 'String->Type 7'M3 :: Type -> 'String->Type
8!illegal data definition (parameters are not uniform) 8!illegal data definition (parameters are not uniform)
9------------ tooltips 9------------ tooltips
10testdata/language-features/adt/gadt03.reject.lc 2:6-2:8 Type | Type -> String->Type 10testdata/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 :: Type -> 'String->Type 8'M :: Type -> 'String->Type
9Value :: {a} -> a -> {b:'String} -> 'M a b 9Value :: {a} -> a -> {b:'String} -> 'M a b
10'MCase :: (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 10'MCase :: (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
11match'M :: (a : Type->Type) -> ((b:Type) -> (c:'String) -> a ('M b c)) -> (d:Type) -> a d -> a d 11match'M :: (a : Type->Type) -> ((b:Type) -> (c:'String) -> a ('M b c)) -> (d:Type) -> a d -> a d
12'M2 :: Type -> 'String->Type 12'M2 :: Type -> 'String->Type
13Value :: {a} -> a -> {b:'String} -> 'M2 a b 13Value :: {a} -> a -> {b:'String} -> 'M2 a b
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 ^^^^^