summaryrefslogtreecommitdiff
path: root/testsuite/tests/annotations/should_fail/annfail08.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/annotations/should_fail/annfail08.stderr')
-rw-r--r--testsuite/tests/annotations/should_fail/annfail08.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/annotations/should_fail/annfail08.stderr b/testsuite/tests/annotations/should_fail/annfail08.stderr
new file mode 100644
index 0000000000..e8b14d1f8a
--- /dev/null
+++ b/testsuite/tests/annotations/should_fail/annfail08.stderr
@@ -0,0 +1,16 @@
+
+annfail08.hs:9:1:
+ No instance for (Data.Data.Data (a0 -> a0))
+ arising from an annotation
+ Possible fix:
+ add an instance declaration for (Data.Data.Data (a0 -> a0))
+ In the expression: (id + 1)
+ In the annotation: {-# ANN f (id + 1) #-}
+
+annfail08.hs:9:17:
+ No instance for (Num (a0 -> a0))
+ arising from the literal `1'
+ Possible fix: add an instance declaration for (Num (a0 -> a0))
+ In the second argument of `(+)', namely `1'
+ In the expression: (id + 1)
+ In the annotation: {-# ANN f (id + 1) #-}