From 0f164eccc13da194da4a5e5e892ca7efce56059c Mon Sep 17 00:00:00 2001 From: sof Date: Wed, 3 Sep 1997 23:36:28 +0000 Subject: [PATCH] [project @ 1997-09-03 23:36:28 by sof] new desugar regr. test --- ghc/tests/deSugar/should_compile/ds041.hs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ghc/tests/deSugar/should_compile/ds041.hs 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{} + -- 1.7.10.4