[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git] / ghc / compiler / tests / deSugar / ds027.hs
diff --git a/ghc/compiler/tests/deSugar/ds027.hs b/ghc/compiler/tests/deSugar/ds027.hs
new file mode 100644 (file)
index 0000000..99a4d93
--- /dev/null
@@ -0,0 +1,9 @@
+--!!! ds027 -- simple instances
+--
+module Test where
+
+data Foo = Bar | Baz
+
+instance Eq Foo where
+  Bar == Baz = True
+  Bar /= Baz = False