diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-05-03 16:40:30 +0200 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-05-03 16:40:30 +0200 |
commit | f468a49a43193caffe92cdd48a52a699880e14ef (patch) | |
tree | 255c8b454e9a75d05397468b849b8f5b032a878a /testdata/language-features/basic-list | |
parent | fa47957b930c53d78d2da0bcb948e2fbff11f59d (diff) |
refactoring
Diffstat (limited to 'testdata/language-features/basic-list')
15 files changed, 24 insertions, 15 deletions
diff --git a/testdata/language-features/basic-list/list01.out b/testdata/language-features/basic-list/list01.out index 5df5b1a0..41b1f057 100644 --- a/testdata/language-features/basic-list/list01.out +++ b/testdata/language-features/basic-list/list01.out | |||
@@ -1,8 +1,10 @@ | |||
1 | main is not found | ||
1 | ------------ desugared source code | 2 | ------------ desugared source code |
2 | value1 = _rhs [] | 3 | value1 = _rhs [] |
4 | |||
3 | value2 = _rhs (fromInt 1 : fromInt 2 : fromInt 3 : fromInt 4 : []) | 5 | value2 = _rhs (fromInt 1 : fromInt 2 : fromInt 3 : fromInt 4 : []) |
6 | |||
4 | value3 = _rhs ('h' : 'e' : 'l' : 'l' : 'o' : []) | 7 | value3 = _rhs ('h' : 'e' : 'l' : 'l' : 'o' : []) |
5 | main is not found | ||
6 | ------------ trace | 8 | ------------ trace |
7 | value1 :: forall a . [a] | 9 | value1 :: forall a . [a] |
8 | value2 :: forall a . Num a => [a] | 10 | value2 :: forall a . Num a => [a] |
diff --git a/testdata/language-features/basic-list/list02.out b/testdata/language-features/basic-list/list02.out index dec74991..6101a1fa 100644 --- a/testdata/language-features/basic-list/list02.out +++ b/testdata/language-features/basic-list/list02.out | |||
@@ -1,8 +1,10 @@ | |||
1 | main is not found | ||
1 | ------------ desugared source code | 2 | ------------ desugared source code |
2 | value1 = _rhs [] | 3 | value1 = _rhs [] |
4 | |||
3 | value2 = _rhs (fromInt 1 : fromInt 2 : fromInt 3 : fromInt 4 : []) | 5 | value2 = _rhs (fromInt 1 : fromInt 2 : fromInt 3 : fromInt 4 : []) |
6 | |||
4 | value3 = _rhs ('h' : 'e' : 'l' : 'l' : 'o' : []) | 7 | value3 = _rhs ('h' : 'e' : 'l' : 'l' : 'o' : []) |
5 | main is not found | ||
6 | ------------ trace | 8 | ------------ trace |
7 | value1 :: forall a . [a] | 9 | value1 :: forall a . [a] |
8 | value2 :: forall a . Num a => [a] | 10 | value2 :: forall a . Num a => [a] |
diff --git a/testdata/language-features/basic-list/list08.out b/testdata/language-features/basic-list/list08.out index aebab457..800c75aa 100644 --- a/testdata/language-features/basic-list/list08.out +++ b/testdata/language-features/basic-list/list08.out | |||
@@ -1,6 +1,6 @@ | |||
1 | main is not found | ||
1 | ------------ desugared source code | 2 | ------------ desugared source code |
2 | value = _rhs (fromInt 1 : 1.2 : []) | 3 | value = _rhs (fromInt 1 : 1.2 : []) |
3 | main is not found | ||
4 | ------------ trace | 4 | ------------ trace |
5 | value :: [Float] | 5 | value :: [Float] |
6 | ------------ tooltips | 6 | ------------ tooltips |
diff --git a/testdata/language-features/basic-list/list09.out b/testdata/language-features/basic-list/list09.out index 11abf486..79bb9d42 100644 --- a/testdata/language-features/basic-list/list09.out +++ b/testdata/language-features/basic-list/list09.out | |||
@@ -1,6 +1,6 @@ | |||
1 | main is not found | ||
1 | ------------ desugared source code | 2 | ------------ desugared source code |
2 | value = _rhs (fromInt 1 : 1.2 : [] :: [Float]) | 3 | value = _rhs (fromInt 1 : 1.2 : [] :: [Float]) |
3 | main is not found | ||
4 | ------------ trace | 4 | ------------ trace |
5 | value :: [Float] | 5 | value :: [Float] |
6 | ------------ tooltips | 6 | ------------ tooltips |
diff --git a/testdata/language-features/basic-list/list11.out b/testdata/language-features/basic-list/list11.out index b70c324c..005c6959 100644 --- a/testdata/language-features/basic-list/list11.out +++ b/testdata/language-features/basic-list/list11.out | |||
@@ -1,6 +1,6 @@ | |||
1 | main is not found | ||
1 | ------------ desugared source code | 2 | ------------ desugared source code |
2 | value = _rhs (fromInt 1 : []) | 3 | value = _rhs (fromInt 1 : []) |
3 | main is not found | ||
4 | ------------ trace | 4 | ------------ trace |
5 | value :: forall a . Num a => [a] | 5 | value :: forall a . Num a => [a] |
6 | ------------ tooltips | 6 | ------------ tooltips |
diff --git a/testdata/language-features/basic-list/list12.out b/testdata/language-features/basic-list/list12.out index 5a5f796d..75cc03e1 100644 --- a/testdata/language-features/basic-list/list12.out +++ b/testdata/language-features/basic-list/list12.out | |||
@@ -1,6 +1,6 @@ | |||
1 | main is not found | ||
1 | ------------ desugared source code | 2 | ------------ desugared source code |
2 | value = _rhs (fromInt 1 : fromInt 2 : fromInt 3 : fromInt 4 : fromInt 5 : []) | 3 | value = _rhs (fromInt 1 : fromInt 2 : fromInt 3 : fromInt 4 : fromInt 5 : []) |
3 | main is not found | ||
4 | ------------ trace | 4 | ------------ trace |
5 | value :: forall a . Num a => [a] | 5 | value :: forall a . Num a => [a] |
6 | ------------ tooltips | 6 | ------------ tooltips |
diff --git a/testdata/language-features/basic-list/list13.out b/testdata/language-features/basic-list/list13.out index 66403b86..9e72ee74 100644 --- a/testdata/language-features/basic-list/list13.out +++ b/testdata/language-features/basic-list/list13.out | |||
@@ -1,6 +1,6 @@ | |||
1 | main is not found | ||
1 | ------------ desugared source code | 2 | ------------ desugared source code |
2 | value = _rhs ('h' : 'e' : 'l' : 'l' : 'o' : []) | 3 | value = _rhs ('h' : 'e' : 'l' : 'l' : 'o' : []) |
3 | main is not found | ||
4 | ------------ trace | 4 | ------------ trace |
5 | value :: [Char] | 5 | value :: [Char] |
6 | ------------ tooltips | 6 | ------------ tooltips |
diff --git a/testdata/language-features/basic-list/listcomp01.out b/testdata/language-features/basic-list/listcomp01.out index fe914476..52af0c94 100644 --- a/testdata/language-features/basic-list/listcomp01.out +++ b/testdata/language-features/basic-list/listcomp01.out | |||
@@ -1,6 +1,6 @@ | |||
1 | main is not found | ||
1 | ------------ desugared source code | 2 | ------------ desugared source code |
2 | value = _rhs (concatMap (\_ -> HNil : []) (HNil : HNil : HNil : HNil : [])) | 3 | value = _rhs (concatMap (\_ -> HNil : []) (HNil : HNil : HNil : HNil : [])) |
3 | main is not found | ||
4 | ------------ trace | 4 | ------------ trace |
5 | value :: [()] | 5 | value :: [()] |
6 | ------------ tooltips | 6 | ------------ tooltips |
diff --git a/testdata/language-features/basic-list/listcomp02.out b/testdata/language-features/basic-list/listcomp02.out index 8d7d9de5..7a2a2998 100644 --- a/testdata/language-features/basic-list/listcomp02.out +++ b/testdata/language-features/basic-list/listcomp02.out | |||
@@ -1,7 +1,8 @@ | |||
1 | main is not found | ||
1 | ------------ desugared source code | 2 | ------------ desugared source code |
2 | l = _rhs (HNil : HNil : HNil : HNil : []) | 3 | l = _rhs (HNil : HNil : HNil : HNil : []) |
4 | |||
3 | value = _rhs (concatMap (\(a :: _) -> a : []) l) | 5 | value = _rhs (concatMap (\(a :: _) -> a : []) l) |
4 | main is not found | ||
5 | ------------ trace | 6 | ------------ trace |
6 | l :: [()] | 7 | l :: [()] |
7 | value :: [()] | 8 | value :: [()] |
diff --git a/testdata/language-features/basic-list/listcomp03.out b/testdata/language-features/basic-list/listcomp03.out index 3de6ae88..ee6dfd4a 100644 --- a/testdata/language-features/basic-list/listcomp03.out +++ b/testdata/language-features/basic-list/listcomp03.out | |||
@@ -1,10 +1,10 @@ | |||
1 | main is not found | ||
1 | ------------ desugared source code | 2 | ------------ desugared source code |
2 | value | 3 | value |
3 | = _rhs | 4 | = _rhs |
4 | (concatMap | 5 | (concatMap |
5 | (\_ -> primIfThenElse False (HNil : []) []) | 6 | (\_ -> primIfThenElse False (HNil : []) []) |
6 | (HNil : HNil : HNil : HNil : [])) | 7 | (HNil : HNil : HNil : HNil : [])) |
7 | main is not found | ||
8 | ------------ trace | 8 | ------------ trace |
9 | value :: [()] | 9 | value :: [()] |
10 | ------------ tooltips | 10 | ------------ tooltips |
diff --git a/testdata/language-features/basic-list/listcomp04.out b/testdata/language-features/basic-list/listcomp04.out index dce40a1a..1069a83b 100644 --- a/testdata/language-features/basic-list/listcomp04.out +++ b/testdata/language-features/basic-list/listcomp04.out | |||
@@ -1,7 +1,8 @@ | |||
1 | main is not found | ||
1 | ------------ desugared source code | 2 | ------------ desugared source code |
2 | l = _rhs (HNil : HNil : HNil : HNil : []) | 3 | l = _rhs (HNil : HNil : HNil : HNil : []) |
4 | |||
3 | value = _rhs (concatMap (\_ -> concatMap (\_ -> HNil : []) l) l) | 5 | value = _rhs (concatMap (\_ -> concatMap (\_ -> HNil : []) l) l) |
4 | main is not found | ||
5 | ------------ trace | 6 | ------------ trace |
6 | l :: [()] | 7 | l :: [()] |
7 | value :: [()] | 8 | value :: [()] |
diff --git a/testdata/language-features/basic-list/listcomp05.out b/testdata/language-features/basic-list/listcomp05.out index 69de4559..b9c7afdb 100644 --- a/testdata/language-features/basic-list/listcomp05.out +++ b/testdata/language-features/basic-list/listcomp05.out | |||
@@ -1,10 +1,10 @@ | |||
1 | main is not found | ||
1 | ------------ desugared source code | 2 | ------------ desugared source code |
2 | value | 3 | value |
3 | = _rhs | 4 | = _rhs |
4 | (concatMap | 5 | (concatMap |
5 | (\_ (a := _rhs HNil) (b := _rhs ((\(c :: _) -> c) a)) -> b : []) | 6 | (\_ (a := _rhs HNil) (b := _rhs ((\(c :: _) -> c) a)) -> b : []) |
6 | (HNil : HNil : [])) | 7 | (HNil : HNil : [])) |
7 | main is not found | ||
8 | ------------ trace | 8 | ------------ trace |
9 | value :: [()] | 9 | value :: [()] |
10 | ------------ tooltips | 10 | ------------ tooltips |
diff --git a/testdata/language-features/basic-list/listcomp06.out b/testdata/language-features/basic-list/listcomp06.out index 590793bb..51a69cf6 100644 --- a/testdata/language-features/basic-list/listcomp06.out +++ b/testdata/language-features/basic-list/listcomp06.out | |||
@@ -1,3 +1,4 @@ | |||
1 | main is not found | ||
1 | ------------ desugared source code | 2 | ------------ desugared source code |
2 | value1 | 3 | value1 |
3 | = _rhs | 4 | = _rhs |
@@ -7,6 +8,7 @@ value1 | |||
7 | (b : []) | 8 | (b : []) |
8 | []) | 9 | []) |
9 | (HNil : HNil : [])) | 10 | (HNil : HNil : [])) |
11 | |||
10 | value2 | 12 | value2 |
11 | = _rhs | 13 | = _rhs |
12 | (concatMap | 14 | (concatMap |
@@ -15,7 +17,6 @@ value2 | |||
15 | (\(a := _rhs HNil) (b := _rhs ((\(c :: _) -> c) a)) -> b : []) | 17 | (\(a := _rhs HNil) (b := _rhs ((\(c :: _) -> c) a)) -> b : []) |
16 | []) | 18 | []) |
17 | (HNil : HNil : [])) | 19 | (HNil : HNil : [])) |
18 | main is not found | ||
19 | ------------ trace | 20 | ------------ trace |
20 | value1 :: [()] | 21 | value1 :: [()] |
21 | value2 :: [()] | 22 | value2 :: [()] |
diff --git a/testdata/language-features/basic-list/listcomp07.out b/testdata/language-features/basic-list/listcomp07.out index a3e5a671..483d128f 100644 --- a/testdata/language-features/basic-list/listcomp07.out +++ b/testdata/language-features/basic-list/listcomp07.out | |||
@@ -1,3 +1,4 @@ | |||
1 | main is not found | ||
1 | ------------ desugared source code | 2 | ------------ desugared source code |
2 | value1 | 3 | value1 |
3 | = _rhs | 4 | = _rhs |
@@ -7,6 +8,7 @@ value1 | |||
7 | (\(d := _rhs b) (e := _rhs ((\(f :: _) -> f) d)) -> b : []) | 8 | (\(d := _rhs b) (e := _rhs ((\(f :: _) -> f) d)) -> b : []) |
8 | []) | 9 | []) |
9 | (HNil : HNil : [])) | 10 | (HNil : HNil : [])) |
11 | |||
10 | value2 | 12 | value2 |
11 | = _rhs | 13 | = _rhs |
12 | (concatMap | 14 | (concatMap |
@@ -15,6 +17,7 @@ value2 | |||
15 | (\(d := _rhs b) (e := _rhs ((\(f :: _) -> f) d)) -> b : []) | 17 | (\(d := _rhs b) (e := _rhs ((\(f :: _) -> f) d)) -> b : []) |
16 | []) | 18 | []) |
17 | (HNil : HNil : [])) | 19 | (HNil : HNil : [])) |
20 | |||
18 | value3 | 21 | value3 |
19 | = _rhs | 22 | = _rhs |
20 | (concatMap | 23 | (concatMap |
@@ -23,7 +26,6 @@ value3 | |||
23 | (\(d := _rhs b) (e := _rhs ((\(f :: _) -> f) d)) -> b : []) | 26 | (\(d := _rhs b) (e := _rhs ((\(f :: _) -> f) d)) -> b : []) |
24 | []) | 27 | []) |
25 | (HNil : HNil : [])) | 28 | (HNil : HNil : [])) |
26 | main is not found | ||
27 | ------------ trace | 29 | ------------ trace |
28 | value1 :: [()] | 30 | value1 :: [()] |
29 | value2 :: [()] | 31 | value2 :: [()] |
diff --git a/testdata/language-features/basic-list/listcomp09.out b/testdata/language-features/basic-list/listcomp09.out index 96351e61..75d2dbf5 100644 --- a/testdata/language-features/basic-list/listcomp09.out +++ b/testdata/language-features/basic-list/listcomp09.out | |||
@@ -1,7 +1,7 @@ | |||
1 | main is not found | ||
1 | ------------ desugared source code | 2 | ------------ desugared source code |
2 | value1 | 3 | value1 |
3 | = _rhs (concatMap (\_ -> (\(a :: _) -> hlistNilCase _ "Hello" a) : []) []) | 4 | = _rhs (concatMap (\_ -> (\(a :: _) -> hlistNilCase _ "Hello" a) : []) []) |
4 | main is not found | ||
5 | ------------ trace | 5 | ------------ trace |
6 | value1 :: Type => [() -> String] | 6 | value1 :: Type => [() -> String] |
7 | ------------ tooltips | 7 | ------------ tooltips |