[commit: ghc] wip/rae: Test #8100 in th/T8100 (0b15e8a)
git at git.haskell.org
git at git.haskell.org
Wed Nov 5 15:53:53 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/rae
Link : http://ghc.haskell.org/trac/ghc/changeset/0b15e8a048a8f7f466984c685b80a44c0a3543e9/ghc
>---------------------------------------------------------------
commit 0b15e8a048a8f7f466984c685b80a44c0a3543e9
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date: Tue Nov 4 15:15:56 2014 -0500
Test #8100 in th/T8100
>---------------------------------------------------------------
0b15e8a048a8f7f466984c685b80a44c0a3543e9
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 9c6dc12..a340be3 100644
--- a/testsuite/tests/th/all.T
+++ b/testsuite/tests/th/all.T
@@ -341,3 +341,4 @@ test('T9209', normal, compile_fail, ['-v0'])
test('T7484', normal, compile_fail, ['-v0'])
test('T1476', normal, compile, ['-v0'])
test('T1476b', normal, compile_fail, ['-v0'])
+test('T8100', expect_broken(8100), compile, ['-v0'])
More information about the ghc-commits
mailing list