diff options
author | Geoffrey Mainland <mainland@apeiron.net> | 2013-05-16 15:08:07 +0100 |
---|---|---|
committer | Geoffrey Mainland <mainland@apeiron.net> | 2013-10-04 14:58:40 -0400 |
commit | 1d43475bc175c2ec6df5c6b71832ffa7d1ee002b (patch) | |
tree | 68eb1c0d1a9467d06ec6f41e9b9b92f8712952b4 /testsuite/tests/th/T5358.stderr | |
parent | 4ccdc324530d51caad2098774e741b6c8c4dd74f (diff) | |
download | haskell-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/th/T5358.stderr')
-rw-r--r-- | testsuite/tests/th/T5358.stderr | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/testsuite/tests/th/T5358.stderr b/testsuite/tests/th/T5358.stderr index 87f81d1137..cab4b97536 100644 --- a/testsuite/tests/th/T5358.stderr +++ b/testsuite/tests/th/T5358.stderr @@ -1,35 +1,5 @@ -T5358.hs:7:1: - Couldn't match expected type ‛t1 -> t1’ with actual type ‛Int’ - The equation(s) for ‛t1’ have one argument, - but its type ‛Int’ has none - -T5358.hs:8:1: - Couldn't match expected type ‛t0 -> t0’ with actual type ‛Int’ - The equation(s) for ‛t2’ have one argument, - but its type ‛Int’ has none - -T5358.hs:10:13: - Couldn't match expected type ‛t -> a0’ with actual type ‛Int’ - Relevant bindings include - x :: t (bound at T5358.hs:10:9) - prop_x1 :: t -> Bool (bound at T5358.hs:10:1) - The function ‛t1’ is applied to one argument, - but its type ‛Int’ has none - In the first argument of ‛(==)’, namely ‛t1 x’ - In the expression: t1 x == t2 x - -T5358.hs:10:21: - Couldn't match expected type ‛t -> a0’ with actual type ‛Int’ - Relevant bindings include - x :: t (bound at T5358.hs:10:9) - prop_x1 :: t -> Bool (bound at T5358.hs:10:1) - The function ‛t2’ is applied to one argument, - but its type ‛Int’ has none - In the second argument of ‛(==)’, namely ‛t2 x’ - In the expression: t1 x == t2 x - -T5358.hs:12:15: +T5358.hs:14:15: Exception when trying to run compile-time code: runTest called error: forall t_0 . t_0 -> GHC.Types.Bool Code: do { VarI _ t _ _ <- reify (mkName "prop_x1"); @@ -37,7 +7,3 @@ T5358.hs:12:15: In the expression: $(do { VarI _ t _ _ <- reify (mkName "prop_x1"); error $ ("runTest called error: " ++ pprint t) }) - In an equation for ‛runTests’: - runTests - = $(do { VarI _ t _ _ <- reify (mkName "prop_x1"); - error $ ("runTest called error: " ++ pprint t) }) |