diff options
author | Jose Pedro Magalhaes <jpm@cs.uu.nl> | 2013-09-04 10:04:29 +0200 |
---|---|---|
committer | Jose Pedro Magalhaes <jpm@cs.uu.nl> | 2013-09-04 17:29:18 +0200 |
commit | 391e99ddbc6037ccafa48844ffb90f88d59ce050 (patch) | |
tree | 7467ed5c74b0d1dff7dd1c40dafb5644b3c60f0a /testsuite/tests/annotations/should_fail/annfail06.hs | |
parent | 8c16eb5e1e07cf432af535d0a2d3ae434a34ed6b (diff) | |
download | haskell-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.hs | 5 |
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 |