[project @ 1999-09-16 17:55:57 by sof]
authorsof <unknown>
Thu, 16 Sep 1999 17:55:57 +0000 (17:55 +0000)
committersof <unknown>
Thu, 16 Sep 1999 17:55:57 +0000 (17:55 +0000)
newtypes with a labelled field caused DS trouble sometime back

ghc/tests/deSugar/should_compile/ds048.hs [new file with mode: 0644]

diff --git a/ghc/tests/deSugar/should_compile/ds048.hs b/ghc/tests/deSugar/should_compile/ds048.hs
new file mode 100644 (file)
index 0000000..2003430
--- /dev/null
@@ -0,0 +1,7 @@
+-- !!! newtypes with a labelled field.
+module ShouldSucceed where
+
+newtype Foo = Foo { x :: Int } deriving (Eq)
+
+f :: Foo -> Foo -> Int
+f a b = x a + x b