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/localfun2.out | |
parent | 95e006bf5afa8d3473e3fe4401f4c9316186a428 (diff) |
mutual function definitions
Diffstat (limited to 'testdata/localfun2.out')
-rw-r--r-- | testdata/localfun2.out | 61 |
1 files changed, 28 insertions, 33 deletions
diff --git a/testdata/localfun2.out b/testdata/localfun2.out index ca1f097b..f2f0ef52 100644 --- a/testdata/localfun2.out +++ b/testdata/localfun2.out | |||
@@ -1,45 +1,40 @@ | |||
1 | main is not found | 1 | main is not found |
2 | ------------ desugared source code | 2 | ------------ desugared source code |
3 | split | 3 | split |
4 | = _lhs | 4 | = primFix |
5 | split | 5 | \(a :: _) -> _lhs |
6 | \(a :: _) -> case'List | 6 | split |
7 | (\(_ :: _) -> _) | 7 | \(b :: _) -> case'List |
8 | (_rhs ([], [])) | 8 | (\(_ :: _) -> _) |
9 | (\(b :: _) (c :: _) -> _rhs | 9 | (_rhs ([], [])) |
10 | let | 10 | (\(c :: _) (d :: _) -> _rhs |
11 | d = _lhs _bs_as (_rhs (split c)); | 11 | let |
12 | e | 12 | e = a d; |
13 | = _lhs | 13 | f |
14 | bs | 14 | = (\(h :: _) -> hlistConsCase |
15 | (_rhs | 15 | _ |
16 | ((\(g :: _) -> hlistConsCase | 16 | (\(_ :: _) (i :: _) -> hlistConsCase |
17 | _ | 17 | _ |
18 | (\(_ :: _) (h :: _) -> hlistConsCase | 18 | (\(j :: _) (k :: _) -> hlistNilCase _ j k) |
19 | _ | 19 | i) |
20 | (\(i :: _) (j :: _) -> hlistNilCase _ i j) | 20 | h) |
21 | h) | 21 | e; |
22 | g) | 22 | g |
23 | d)); | 23 | = (\(l :: _) -> hlistConsCase |
24 | f | 24 | _ |
25 | = _lhs | 25 | (\(m :: _) (n :: _) -> hlistConsCase |
26 | as | ||
27 | (_rhs | ||
28 | ((\(k :: _) -> hlistConsCase | ||
29 | _ | 26 | _ |
30 | (\(l :: _) (m :: _) -> hlistConsCase | 27 | (\(_ :: _) (o :: _) -> hlistNilCase _ m o) |
31 | _ | 28 | n) |
32 | (\(_ :: _) (n :: _) -> hlistNilCase _ l n) | 29 | l) |
33 | m) | 30 | e |
34 | k) | 31 | in (c : f, g)) |
35 | d)) | 32 | b |
36 | in (b : e, f)) | ||
37 | a | ||
38 | ------------ core code | 33 | ------------ core code |
39 | split :: forall a . [a] -> ([a], [a]) | 34 | split :: forall a . [a] -> ([a], [a]) |
40 | split | 35 | split |
41 | = \a -> primFix | 36 | = \a -> primFix |
42 | ([a] -> ' ([a], [a])) | 37 | _ |
43 | \b c -> case'List | 38 | \b c -> case'List |
44 | (\_ -> ' ([a], [a])) | 39 | (\_ -> ' ([a], [a])) |
45 | (_rhs ([], [])) | 40 | (_rhs ([], [])) |