diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-05-11 20:57:07 +0200 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-05-12 00:50:34 +0200 |
commit | e4725c07ee3e7e3fc010df418d16f37c39b0af0f (patch) | |
tree | cb10e1d1203eed875955097311ccbe0943564226 /testdata/zip01.out | |
parent | 95e006bf5afa8d3473e3fe4401f4c9316186a428 (diff) |
mutual function definitions
Diffstat (limited to 'testdata/zip01.out')
-rw-r--r-- | testdata/zip01.out | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/testdata/zip01.out b/testdata/zip01.out index b34b81e2..3a14fa8a 100644 --- a/testdata/zip01.out +++ b/testdata/zip01.out | |||
@@ -2,38 +2,37 @@ main is not found | |||
2 | ------------ desugared source code | 2 | ------------ desugared source code |
3 | zip2 :: forall (a :: _) (b :: _) . [a] -> [b] -> [(a, b)] | 3 | zip2 :: forall (a :: _) (b :: _) . [a] -> [b] -> [(a, b)] |
4 | zip2 | 4 | zip2 |
5 | = _lhs | 5 | = primFix |
6 | zip2 | 6 | \(a :: forall (b :: _) (c :: _) . [b] -> [c] -> [(b, c)]) -> _lhs |
7 | \(a :: _) (b :: _) -> case'List | 7 | zip2 |
8 | (\(_ :: _) -> _) | 8 | \(d :: _) (e :: _) -> case'List |
9 | (_rhs []) | ||
10 | (\(c :: _) (d :: _) -> case'List | ||
11 | (\(_ :: _) -> _) | 9 | (\(_ :: _) -> _) |
12 | (_rhs []) | 10 | (_rhs []) |
13 | (\(e :: _) (f :: _) -> _rhs ((c, e) : zip2 d f)) | 11 | (\(f :: _) (g :: _) -> case'List |
14 | b) | 12 | (\(_ :: _) -> _) |
15 | a | 13 | (_rhs []) |
14 | (\(h :: _) (i :: _) -> _rhs ((f, h) : a g i)) | ||
15 | e) | ||
16 | d | ||
16 | ------------ core code | 17 | ------------ core code |
17 | zip2 :: forall a b . [a] -> [b] -> [(a, b)] | 18 | zip2 :: forall a b . [a] -> [b] -> [(a, b)] |
18 | zip2 | 19 | zip2 |
19 | = primFix | 20 | = primFix |
20 | (forall a b . [a] -> [b] -> [' (a, b)]) | 21 | _ |
21 | \c d e f g -> case'List | 22 | \a b c d e -> case'List |
22 | (\_ -> [' (d, e)]) | 23 | (\_ -> [' (b, c)]) |
23 | (_rhs []) | 24 | (_rhs []) |
24 | (\h i -> case'List | 25 | (\f g -> case'List |
25 | (\_ -> [' (d, e)]) | 26 | (\_ -> [' (b, c)]) |
26 | (_rhs []) | 27 | (_rhs []) |
27 | (\j k -> _rhs ((h, j) : c d e i k)) | 28 | (\h i -> _rhs ((f, h) : a b c g i)) |
28 | g) | 29 | e) |
29 | f | 30 | d |
30 | ------------ tooltips | 31 | ------------ tooltips |
31 | testdata/zip01.lc 1:9-1:12 | 32 | testdata/zip01.lc 1:9-1:12 |
32 | Type | 33 | Type |
33 | testdata/zip01.lc 1:9-1:30 | 34 | testdata/zip01.lc 1:9-1:30 |
34 | Type | Type | 35 | Type | Type |
35 | testdata/zip01.lc 1:9-4:40 | ||
36 | forall a b . [a] -> [b] -> [(a, b)] | ||
37 | testdata/zip01.lc 1:10-1:11 | 36 | testdata/zip01.lc 1:10-1:11 |
38 | _d | 37 | _d |
39 | testdata/zip01.lc 1:16-1:19 | 38 | testdata/zip01.lc 1:16-1:19 |