projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git]
/
ghc
/
compiler
/
tests
/
typecheck
/
should_succeed
/
tc053.hs
diff --git a/ghc/compiler/tests/typecheck/should_succeed/tc053.hs
b/ghc/compiler/tests/typecheck/should_succeed/tc053.hs
new file mode 100644
(file)
index 0000000..
865211d
--- /dev/null
+++ b/
ghc/compiler/tests/typecheck/should_succeed/tc053.hs
@@ -0,0
+1,12
@@
+module ShouldSucceed where
+
+class Eq' a where
+ deq :: a -> a -> Bool
+
+instance Eq' Int where
+ deq x y = True
+
+instance (Eq' a) => Eq' [a] where
+ deq (a:as) (b:bs) = if (deq a b) then (deq as bs) else False
+
+f x = deq x [1]