summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts
diff options
context:
space:
mode:
authorGeoffrey Mainland <mainland@apeiron.net>2013-05-16 15:08:07 +0100
committerGeoffrey Mainland <mainland@apeiron.net>2013-10-04 14:58:40 -0400
commit1d43475bc175c2ec6df5c6b71832ffa7d1ee002b (patch)
tree68eb1c0d1a9467d06ec6f41e9b9b92f8712952b4 /testsuite/tests/ghci/scripts
parent4ccdc324530d51caad2098774e741b6c8c4dd74f (diff)
downloadhaskell-1d43475bc175c2ec6df5c6b71832ffa7d1ee002b.tar.gz
Fix test wibbles for new Template Haskell.
Because splices are now run in the renamer, we do not get the same error context as we would when running in the type checker. In most cases we get less context, and in some cases I have added additional context. Error messages should at least tell the user that an error occurred in a splice; dropping context beyond that point is not judged a great loss. Note that we may now report only one error when multiple errors were reported before because splices are now run in the renamer.
Diffstat (limited to 'testsuite/tests/ghci/scripts')
-rw-r--r--testsuite/tests/ghci/scripts/T4127a.stderr6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T4127a.stderr b/testsuite/tests/ghci/scripts/T4127a.stderr
index cc118a9e20..598bdbc5a3 100644
--- a/testsuite/tests/ghci/scripts/T4127a.stderr
+++ b/testsuite/tests/ghci/scripts/T4127a.stderr
@@ -3,3 +3,9 @@
Multiple declarations of ‛f’
Declared at: <interactive>:3:32
<interactive>:3:68
+ In the Template Haskell quotation
+ [d| f = undefined
+ class Foo x where
+ f :: x -> x
+ instance Foo Int where
+ f = id |]