diff options
Diffstat (limited to 'testdata/typeclass.out')
-rw-r--r-- | testdata/typeclass.out | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/testdata/typeclass.out b/testdata/typeclass.out index 0280bed1..03702cd7 100644 --- a/testdata/typeclass.out +++ b/testdata/typeclass.out | |||
@@ -52,17 +52,18 @@ not | |||
52 | (/=) = _lhs (/=) \(a :: _) (b :: _) -> _rhs (not (a == b)) | 52 | (/=) = _lhs (/=) \(a :: _) (b :: _) -> _rhs (not (a == b)) |
53 | 53 | ||
54 | (==.) | 54 | (==.) |
55 | = _lhs | 55 | = primFix |
56 | (==.) | 56 | \(a :: _) -> _lhs |
57 | \(a :: _) (b :: _) -> case'List | 57 | (==.) |
58 | (\(_ :: _) -> _) | 58 | \(b :: _) (c :: _) -> case'List |
59 | (case'List (\(_ :: _) -> _) (_rhs True) (\(_ :: _) (_ :: _) -> _rhs False) b) | ||
60 | (\(_ :: _) (c :: _) -> case'List | ||
61 | (\(_ :: _) -> _) | 59 | (\(_ :: _) -> _) |
62 | (_rhs False) | 60 | (case'List (\(_ :: _) -> _) (_rhs True) (\(_ :: _) (_ :: _) -> _rhs False) c) |
63 | (\(_ :: _) (d :: _) -> _rhs (c ==. d)) | 61 | (\(_ :: _) (d :: _) -> case'List |
64 | b) | 62 | (\(_ :: _) -> _) |
65 | a | 63 | (_rhs False) |
64 | (\(_ :: _) (e :: _) -> _rhs (a d e)) | ||
65 | c) | ||
66 | b | ||
66 | ------------ core code | 67 | ------------ core code |
67 | && :: Bool -> Bool -> Bool | 68 | && :: Bool -> Bool -> Bool |
68 | && = \a b -> case'Bool (\_ -> 'Bool) (_rhs False) (_rhs b) a | 69 | && = \a b -> case'Bool (\_ -> 'Bool) (_rhs False) (_rhs b) a |
@@ -89,7 +90,7 @@ not | |||
89 | ==. :: forall a b . [a] -> [b] -> Bool | 90 | ==. :: forall a b . [a] -> [b] -> Bool |
90 | ==. | 91 | ==. |
91 | = \a b -> primFix | 92 | = \a b -> primFix |
92 | ([a] -> [b] -> 'Bool) | 93 | _ |
93 | \c d e -> case'List | 94 | \c d e -> case'List |
94 | (\_ -> 'Bool) | 95 | (\_ -> 'Bool) |
95 | (case'List (\_ -> 'Bool) (_rhs True) (\_ _ -> _rhs False) e) | 96 | (case'List (\_ -> 'Bool) (_rhs True) (\_ _ -> _rhs False) e) |