From: sof Date: Wed, 3 Sep 1997 23:36:28 +0000 (+0000) Subject: [project @ 1997-09-03 23:36:28 by sof] X-Git-Tag: Approximately_1000_patches_recorded~63 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=0f164eccc13da194da4a5e5e892ca7efce56059c [project @ 1997-09-03 23:36:28 by sof] new desugar regr. test --- diff --git a/ghc/tests/deSugar/should_compile/ds041.hs b/ghc/tests/deSugar/should_compile/ds041.hs new file mode 100644 index 0000000..072ed89 --- /dev/null +++ b/ghc/tests/deSugar/should_compile/ds041.hs @@ -0,0 +1,16 @@ +{- In 2.05 this one crashed with + + Fail: "basicTypes/Id.lhs", line 990: incomplete pattern(s) + to match in function "dataConFieldLabels" + + Reason: dsExpr (RecordCon ...) didn't extract + the constructor properly. +-} + +module Bug where + +data Eq a => Foo a = Foo { x :: a } + +foo :: Eq a => Foo a +foo = Foo{} +