summaryrefslogtreecommitdiff
path: root/testsuite/tests/annotations/should_fail/annfail03.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/annotations/should_fail/annfail03.hs')
-rw-r--r--testsuite/tests/annotations/should_fail/annfail03.hs18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/annotations/should_fail/annfail03.hs b/testsuite/tests/annotations/should_fail/annfail03.hs
new file mode 100644
index 0000000000..c3e2a82323
--- /dev/null
+++ b/testsuite/tests/annotations/should_fail/annfail03.hs
@@ -0,0 +1,18 @@
+{-# LANGUAGE DeriveDataTypeable #-}
+
+module Annfail03 where
+-- Testing annotating something with a value defined + Typeabled / Dataed in same module
+
+import Data.Data
+import Data.Typeable
+
+data InModule = InModule
+ deriving (Typeable, Data)
+
+{-# ANN module InModule #-}
+
+{-# ANN type Foo InModule #-}
+data Foo = Bar
+
+{-# ANN f InModule #-}
+f x = x \ No newline at end of file