Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/26c9623749b0b6df046ef738ed33e38464529b1a

>---------------------------------------------------------------

commit 26c9623749b0b6df046ef738ed33e38464529b1a
Author: Simon Peyton Jones <[email protected]>
Date:   Mon Mar 12 09:05:25 2012 +0000

    Improve error message when interpreter is not enabled (Trac #5919)

>---------------------------------------------------------------

 compiler/rename/RnTypes.lhs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/compiler/rename/RnTypes.lhs b/compiler/rename/RnTypes.lhs
index 15e5501..8c26f92 100644
--- a/compiler/rename/RnTypes.lhs
+++ b/compiler/rename/RnTypes.lhs
@@ -888,7 +888,8 @@ checkTH _ _ = return ()     -- OK
 #else
 checkTH e what         -- Raise an error in a stage-1 compiler
   = addErr (vcat [ptext (sLit "Template Haskell") <+> text what <+>  
-                 ptext (sLit "illegal in a stage-1 compiler"),
+                 ptext (sLit "requires GHC with interpreter support"),
+                  ptext (sLit "Perhaps you are using a stage-1 compiler?"),
                  nest 2 (ppr e)])
 #endif   
 \end{code}



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to