summaryrefslogtreecommitdiff
path: root/testdata/typeclass.out
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/typeclass.out')
-rw-r--r--testdata/typeclass.out26
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
2infix 4 ==
3infix 4 /=
4infix 4 <
5infixr 3 &&
6infixr 2 ||
7not = \(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))
1main is not found 27main is not found
2------------ trace 28------------ trace
3not :: Bool -> Bool 29not :: Bool -> Bool