diff options
author | Richard Eisenberg <eir@cis.upenn.edu> | 2014-11-04 15:15:56 -0500 |
---|---|---|
committer | Richard Eisenberg <eir@cis.upenn.edu> | 2014-11-12 12:35:57 -0500 |
commit | 767feb370d0a05a78a34a9498fe11b90d395d158 (patch) | |
tree | 5ecb043235aa6c0629a6e78a58c6ec5e92c34bc7 | |
parent | 88a42be1b40c55241f835da815faa9eb8b356331 (diff) | |
download | haskell-767feb370d0a05a78a34a9498fe11b90d395d158.tar.gz |
Test #8100 in th/T8100
-rw-r--r-- | testsuite/tests/th/T8100.hs | 20 | ||||
-rw-r--r-- | testsuite/tests/th/all.T | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/tests/th/T8100.hs b/testsuite/tests/th/T8100.hs new file mode 100644 index 0000000000..debc2f7166 --- /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 342f5e3ed4..4a8e340071 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']) |