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
/
deSugar
/
ds026.hs
diff --git a/ghc/compiler/tests/deSugar/ds026.hs
b/ghc/compiler/tests/deSugar/ds026.hs
new file mode 100644
(file)
index 0000000..
2f9faa7
--- /dev/null
+++ b/
ghc/compiler/tests/deSugar/ds026.hs
@@ -0,0
+1,12
@@
+--!!! ds026 -- classes -- incl. polymorphic method
+
+class Foo a where
+ op :: a -> a
+
+class Foo a => Boo a where
+ op1 :: a -> a
+
+class Boo a => Noo a where
+ op2 :: (Eq b) => a -> b -> a
+
+f x y = op (op2 x y)