[commit: ghc] wip/rae: Test #8100 in th/T8100 (767feb3)
git at git.haskell.org
git at git.haskell.org
Wed Nov 12 18:28:05 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/rae
Link : http://ghc.haskell.org/trac/ghc/changeset/767feb370d0a05a78a34a9498fe11b90d395d158/ghc
>---------------------------------------------------------------
commit 767feb370d0a05a78a34a9498fe11b90d395d158
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date: Tue Nov 4 15:15:56 2014 -0500
Test #8100 in th/T8100
>---------------------------------------------------------------
767feb370d0a05a78a34a9498fe11b90d395d158
testsuite/tests/th/T8100.hs | 20 ++++++++++++++++++++
testsuite/tests/th/all.T | 1 +
2 files changed, 21 insertions(+)
diff --git a/testsuite/tests/th/T8100.hs b/testsuite/tests/th/T8100.hs
new file mode 100644
index 0000000..debc2f7
--- /dev/null
+++ b/testsuite/tests/th/T8100.hs
@@ -0,0 +1,20 @@
+{-# LANGUAGE TemplateHaskell, StandaloneDeriving #-}
+
+module T8100 where
+
+import Language.Haskell.TH
+
+data Foo a = Foo a
+data Bar = Bar Int
+
+$( do decs <- [d| deriving instance Eq a => Eq (Foo a)
+ deriving instance Ord a => Ord (Foo a) |]
+ return ( StandaloneDerivD [] (ConT ''Eq `AppT` ConT ''Bar)
+ : StandaloneDerivD [] (ConT ''Ord `AppT` ConT ''Bar)
+ : decs ) )
+
+blah :: Ord a => Foo a -> Foo a -> Ordering
+blah = compare
+
+buzz :: Bar -> Bar -> Ordering
+buzz = compare
diff --git a/testsuite/tests/th/all.T b/testsuite/tests/th/all.T
index 342f5e3..4a8e340 100644
--- a/testsuite/tests/th/all.T
+++ b/testsuite/tests/th/all.T
@@ -337,3 +337,4 @@ test('T9084', normal, compile_fail, ['-v0'])
test('T9738', normal, compile, ['-v0'])
test('T9081', normal, compile, ['-v0'])
test('T9066', normal, compile, ['-v0'])
+test('T8100', expect_broken(8100), compile, ['-v0'])
More information about the ghc-commits
mailing list