summaryrefslogtreecommitdiff
path: root/testsuite/tests/annotations/should_fail/annfail06.hs
diff options
context:
space:
mode:
authorJose Pedro Magalhaes <jpm@cs.uu.nl>2013-09-04 10:04:29 +0200
committerJose Pedro Magalhaes <jpm@cs.uu.nl>2013-09-04 17:29:18 +0200
commit391e99ddbc6037ccafa48844ffb90f88d59ce050 (patch)
tree7467ed5c74b0d1dff7dd1c40dafb5644b3c60f0a /testsuite/tests/annotations/should_fail/annfail06.hs
parent8c16eb5e1e07cf432af535d0a2d3ae434a34ed6b (diff)
downloadhaskell-391e99ddbc6037ccafa48844ffb90f88d59ce050.tar.gz
Adapt test to avoid Typeable instance error
Diffstat (limited to 'testsuite/tests/annotations/should_fail/annfail06.hs')
-rw-r--r--testsuite/tests/annotations/should_fail/annfail06.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/tests/annotations/should_fail/annfail06.hs b/testsuite/tests/annotations/should_fail/annfail06.hs
index 671f0c748e..ce1c46f7af 100644
--- a/testsuite/tests/annotations/should_fail/annfail06.hs
+++ b/testsuite/tests/annotations/should_fail/annfail06.hs
@@ -1,3 +1,5 @@
+{-# LANGUAGE StandaloneDeriving #-}
+
module Annfail06 where
-- Testing that we don't accept Typeable or Data instances defined in the same module
@@ -6,8 +8,7 @@ import Annfail06_Help
import Data.Data
import Data.Typeable
-instance Typeable InstancesInWrongModule where
- typeRep _ = undefined
+deriving instance Typeable InstancesInWrongModule
instance Data InstancesInWrongModule where
gfoldl = undefined