diff options
Diffstat (limited to 'testdata/data.out')
-rw-r--r-- | testdata/data.out | 84 |
1 files changed, 78 insertions, 6 deletions
diff --git a/testdata/data.out b/testdata/data.out index bf9da023..498f6f32 100644 --- a/testdata/data.out +++ b/testdata/data.out | |||
@@ -1,19 +1,82 @@ | |||
1 | ------------ desugared source code | ||
2 | data Data0 :: Type where | ||
3 | Data0 :: Data0 | ||
4 | data Data1 (_ :: Type) (_ :: Type) (_ :: Type) :: Type where | ||
5 | Data1 :: _c -> _b -> _a -> Data1 _c _b _a | ||
6 | data Data2 :: Type where | ||
7 | Data21 :: Int -> Data2 | ||
8 | Data22 :: Int -> Int -> Data2 | ||
9 | Data23 :: Int -> Data2 | ||
10 | Data24 :: Data2 | ||
11 | x | ||
12 | = \(a :: _) -> 'Data2Case | ||
13 | \_ -> _ :: _ | ||
14 | \_ -> _rhs undefined | ||
15 | \(b :: _) -> \_ -> _rhs b | ||
16 | \(c :: _) -> _rhs c | ||
17 | (_rhs undefined) | ||
18 | a | ||
19 | y | ||
20 | = \(a :: _) -> 'Data2Case | ||
21 | \_ -> _ :: _ | ||
22 | \_ -> _rhs undefined | ||
23 | \_ (b :: _) -> _rhs b | ||
24 | \_ -> _rhs undefined | ||
25 | (_rhs undefined) | ||
26 | a | ||
27 | data Data5 (_ :: Type) (_ :: Type) (_ :: Type) :: Type where | ||
28 | Data51 :: _c -> Data5 _c _b _a | ||
29 | Data52 :: _c -> _b -> _a -> Data5 _c _b _a | ||
30 | Data53 :: Int -> _c -> Float -> _b -> _a -> Data5 _c _b _a | ||
31 | a5 | ||
32 | = \(a :: _) -> 'Data5Case | ||
33 | \_ -> _ :: _ | ||
34 | \(b :: _) -> _rhs b | ||
35 | \(c :: _) -> \_ -> \_ -> _rhs c | ||
36 | \_ -> \_ -> \_ -> \_ -> \_ -> _rhs undefined | ||
37 | a | ||
38 | b5 | ||
39 | = \(a :: _) -> 'Data5Case | ||
40 | \_ -> _ :: _ | ||
41 | \_ -> _rhs undefined | ||
42 | \_ (b :: _) -> \_ -> _rhs b | ||
43 | \_ -> \_ -> \_ -> \_ -> \_ -> _rhs undefined | ||
44 | a | ||
45 | c5 | ||
46 | = \(a :: _) -> 'Data5Case | ||
47 | \_ -> _ :: _ | ||
48 | \_ -> _rhs undefined | ||
49 | \_ -> \_ (b :: _) -> _rhs b | ||
50 | \_ -> \_ -> \_ -> \_ -> \_ -> _rhs undefined | ||
51 | a | ||
1 | main is not found | 52 | main is not found |
2 | ------------ trace | 53 | ------------ trace |
3 | 'Data0 :: [32mType[0m | 54 | 'Data0 :: [32mType[0m |
4 | Data0 :: [32mData0[0m | 55 | Data0 :: [32mData0[0m |
5 | 'Data0Case :: [32mforall (a :: Data0 -> Type) -> [32m[32ma[0;32m [32m'Data0[0;32m[0;32m -> forall (b :: Data0) -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m[0m | 56 | 'Data0Case |
57 | :: [32mforall (a :: Data0 -> Type) -> [32m[32ma[0;32m [32m'Data0[0;32m[0;32m -> forall (b :: Data0) -> [32m[32ma[0;32m [32m[32mb[0;32m[0;32m[0;32m[0m | ||
6 | match'Data0 :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32mData0[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 | 58 | match'Data0 :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32mData0[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 |
7 | 'Data1 :: [32mType -> Type -> Type -> Type[0m | 59 | 'Data1 :: [32mType -> Type -> Type -> Type[0m |
8 | Data1 :: [32mforall a b c . [32ma[0;32m -> [32mb[0;32m -> [32mc[0;32m -> Data1 [32ma[0;32m [32mb[0;32m [32mc[0;32m[0m | 60 | Data1 :: [32mforall a b c . [32ma[0;32m -> [32mb[0;32m -> [32mc[0;32m -> Data1 [32ma[0;32m [32mb[0;32m [32mc[0;32m[0m |
9 | 'Data1Case :: [32mforall a b c . forall (d :: Data1 [32ma[0;32m [32mb[0;32m [32mc[0;32m -> Type) -> (forall (e :: [32ma[0;32m) (f :: [32mb[0;32m) (g :: [32mc[0;32m) -> [32m[32md[0;32m [32m('Data1 [32me[0;32m [32mf[0;32m [32mg[0;32m)[0;32m[0;32m) -> forall (h :: Data1 [32ma[0;32m [32mb[0;32m [32mc[0;32m) -> [32m[32md[0;32m [32m[32mh[0;32m[0;32m[0;32m[0m | 61 | 'Data1Case |
10 | match'Data1 :: [32mforall (a :: Type -> Type) -> (forall b c d -> [32m[32ma[0;32m [32m(Data1 [32mb[0;32m [32mc[0;32m [32md[0;32m)[0;32m[0;32m) -> forall e -> [32m[32ma[0;32m [32m[32me[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32me[0;32m[0;32m[0;32m[0m | 62 | :: [32mforall a b c |
63 | . forall (d :: Data1 [32ma[0;32m [32mb[0;32m [32mc[0;32m -> Type) | ||
64 | -> (forall (e :: [32ma[0;32m) (f :: [32mb[0;32m) (g :: [32mc[0;32m) -> [32m[32md[0;32m [32m('Data1 [32me[0;32m [32mf[0;32m [32mg[0;32m)[0;32m[0;32m) | ||
65 | -> forall (h :: Data1 [32ma[0;32m [32mb[0;32m [32mc[0;32m) -> [32m[32md[0;32m [32m[32mh[0;32m[0;32m[0;32m[0m | ||
66 | match'Data1 | ||
67 | :: [32mforall (a :: Type -> Type) | ||
68 | -> (forall b c d -> [32m[32ma[0;32m [32m(Data1 [32mb[0;32m [32mc[0;32m [32md[0;32m)[0;32m[0;32m) -> forall e -> [32m[32ma[0;32m [32m[32me[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32me[0;32m[0;32m[0;32m[0m | ||
11 | 'Data2 :: [32mType[0m | 69 | 'Data2 :: [32mType[0m |
12 | Data21 :: [32mInt -> Data2[0m | 70 | Data21 :: [32mInt -> Data2[0m |
13 | Data22 :: [32mInt -> Int -> Data2[0m | 71 | Data22 :: [32mInt -> Int -> Data2[0m |
14 | Data23 :: [32mInt -> Data2[0m | 72 | Data23 :: [32mInt -> Data2[0m |
15 | Data24 :: [32mData2[0m | 73 | Data24 :: [32mData2[0m |
16 | 'Data2Case :: [32mforall (a :: Data2 -> Type) -> (forall (b :: Int) -> [32m[32ma[0;32m [32m('Data21 [32mb[0;32m)[0;32m[0;32m) -> (forall (c :: Int) (d :: Int) -> [32m[32ma[0;32m [32m('Data22 [32mc[0;32m [32md[0;32m)[0;32m[0;32m) -> (forall (e :: Int) -> [32m[32ma[0;32m [32m('Data23 [32me[0;32m)[0;32m[0;32m) -> [32m[32ma[0;32m [32m'Data24[0;32m[0;32m -> forall (f :: Data2) -> [32m[32ma[0;32m [32m[32mf[0;32m[0;32m[0;32m[0m | 74 | 'Data2Case |
75 | :: [32mforall (a :: Data2 -> Type) | ||
76 | -> (forall (b :: Int) -> [32m[32ma[0;32m [32m('Data21 [32mb[0;32m)[0;32m[0;32m) | ||
77 | -> (forall (c :: Int) (d :: Int) -> [32m[32ma[0;32m [32m('Data22 [32mc[0;32m [32md[0;32m)[0;32m[0;32m) | ||
78 | -> (forall (e :: Int) -> [32m[32ma[0;32m [32m('Data23 [32me[0;32m)[0;32m[0;32m) | ||
79 | -> [32m[32ma[0;32m [32m'Data24[0;32m[0;32m -> forall (f :: Data2) -> [32m[32ma[0;32m [32m[32mf[0;32m[0;32m[0;32m[0m | ||
17 | match'Data2 :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32mData2[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 | 80 | match'Data2 :: [32mforall (a :: Type -> Type) -> [32m[32ma[0;32m [32mData2[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 |
18 | x :: [32mData2 -> Int[0m | 81 | x :: [32mData2 -> Int[0m |
19 | y :: [32mData2 -> Int[0m | 82 | y :: [32mData2 -> Int[0m |
@@ -21,8 +84,17 @@ y :: [32mData2 -> Int[0m | |||
21 | Data51 :: [32mforall a b c . [32ma[0;32m -> Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m[0m | 84 | Data51 :: [32mforall a b c . [32ma[0;32m -> Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m[0m |
22 | Data52 :: [32mforall a b c . [32ma[0;32m -> [32mb[0;32m -> [32mc[0;32m -> Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m[0m | 85 | Data52 :: [32mforall a b c . [32ma[0;32m -> [32mb[0;32m -> [32mc[0;32m -> Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m[0m |
23 | Data53 :: [32mforall a b c . Int -> [32ma[0;32m -> Float -> [32mb[0;32m -> [32mc[0;32m -> Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m[0m | 86 | Data53 :: [32mforall a b c . Int -> [32ma[0;32m -> Float -> [32mb[0;32m -> [32mc[0;32m -> Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m[0m |
24 | 'Data5Case :: [32mforall a b c . forall (d :: Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m -> Type) -> (forall (e :: [32ma[0;32m) -> [32m[32md[0;32m [32m('Data51 [32me[0;32m)[0;32m[0;32m) -> (forall (f :: [32ma[0;32m) (g :: [32mb[0;32m) (h :: [32mc[0;32m) -> [32m[32md[0;32m [32m('Data52 [32mf[0;32m [32mg[0;32m [32mh[0;32m)[0;32m[0;32m) -> (forall (i :: Int) (j :: [32ma[0;32m) (k :: Float) (l :: [32mb[0;32m) (m :: [32mc[0;32m) -> [32m[32md[0;32m [32m('Data53 [32mi[0;32m [32mj[0;32m [32mk[0;32m [32ml[0;32m [32mm[0;32m)[0;32m[0;32m) -> forall (n :: Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m) -> [32m[32md[0;32m [32m[32mn[0;32m[0;32m[0;32m[0m | 87 | 'Data5Case |
25 | match'Data5 :: [32mforall (a :: Type -> Type) -> (forall b c d -> [32m[32ma[0;32m [32m(Data5 [32mb[0;32m [32mc[0;32m [32md[0;32m)[0;32m[0;32m) -> forall e -> [32m[32ma[0;32m [32m[32me[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32me[0;32m[0;32m[0;32m[0m | 88 | :: [32mforall a b c |
89 | . forall (d :: Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m -> Type) | ||
90 | -> (forall (e :: [32ma[0;32m) -> [32m[32md[0;32m [32m('Data51 [32me[0;32m)[0;32m[0;32m) | ||
91 | -> (forall (f :: [32ma[0;32m) (g :: [32mb[0;32m) (h :: [32mc[0;32m) -> [32m[32md[0;32m [32m('Data52 [32mf[0;32m [32mg[0;32m [32mh[0;32m)[0;32m[0;32m) | ||
92 | -> (forall (i :: Int) (j :: [32ma[0;32m) (k :: Float) (l :: [32mb[0;32m) (m :: [32mc[0;32m) | ||
93 | -> [32m[32md[0;32m [32m('Data53 [32mi[0;32m [32mj[0;32m [32mk[0;32m [32ml[0;32m [32mm[0;32m)[0;32m[0;32m) | ||
94 | -> forall (n :: Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m) -> [32m[32md[0;32m [32m[32mn[0;32m[0;32m[0;32m[0m | ||
95 | match'Data5 | ||
96 | :: [32mforall (a :: Type -> Type) | ||
97 | -> (forall b c d -> [32m[32ma[0;32m [32m(Data5 [32mb[0;32m [32mc[0;32m [32md[0;32m)[0;32m[0;32m) -> forall e -> [32m[32ma[0;32m [32m[32me[0;32m[0;32m[0;32m -> [32m[32ma[0;32m [32m[32me[0;32m[0;32m[0;32m[0m | ||
26 | a5 :: [32mforall a b c . Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m -> [32ma[0;32m[0m | 98 | a5 :: [32mforall a b c . Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m -> [32ma[0;32m[0m |
27 | b5 :: [32mforall a b c . Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m -> [32mb[0;32m[0m | 99 | b5 :: [32mforall a b c . Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m -> [32mb[0;32m[0m |
28 | c5 :: [32mforall a b c . Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m -> [32mc[0;32m[0m | 100 | c5 :: [32mforall a b c . Data5 [32ma[0;32m [32mb[0;32m [32mc[0;32m -> [32mc[0;32m[0m |