diff options
Diffstat (limited to 'testdata/typeclass.out')
-rw-r--r-- | testdata/typeclass.out | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testdata/typeclass.out b/testdata/typeclass.out index 3f5e3629..746fa7b9 100644 --- a/testdata/typeclass.out +++ b/testdata/typeclass.out | |||
@@ -1,3 +1,29 @@ | |||
1 | ------------ desugared source code | ||
2 | infix 4 == | ||
3 | infix 4 /= | ||
4 | infix 4 < | ||
5 | infixr 3 && | ||
6 | infixr 2 || | ||
7 | not = \(a :: _) -> 'BoolCase \_ -> _ :: _ (_rhs True) (_rhs False) a | ||
8 | && = \(a :: _) (b :: _) -> 'BoolCase \_ -> _ :: _ (_rhs False) (_rhs b) a | ||
9 | || = \(a :: _) (b :: _) -> 'BoolCase \_ -> _ :: _ (_rhs b) (_rhs True) a | ||
10 | 'Eq | ||
11 | = (\(a :: _) -> match'Bool | ||
12 | \_ -> _ | ||
13 | (_rhs 'Unit) | ||
14 | a | ||
15 | (_rhs ('Empty "no instance of 'Eq on ???"))) | ||
16 | :: Type -> Type | ||
17 | == | ||
18 | = (\ @a -> \ @_ -> match'Bool | ||
19 | \_ -> _ | ||
20 | (_rhs | ||
21 | \(b | ||
22 | := \(c :: _) (d :: _) -> 'BoolCase \_ -> _ :: _ (_rhs (not d)) (_rhs d) c) -> b) | ||
23 | a | ||
24 | (_rhs undefined)) | ||
25 | :: forall e . Eq e => e -> e -> Bool | ||
26 | /= = \(a :: _) (b :: _) -> _rhs (not (a == b)) | ||
1 | main is not found | 27 | main is not found |
2 | ------------ trace | 28 | ------------ trace |
3 | not :: [32mBool -> Bool[0m | 29 | not :: [32mBool -> Bool[0m |