diff options
author | simonmar <unknown> | 2000-11-17 16:53:28 +0000 |
---|---|---|
committer | simonmar <unknown> | 2000-11-17 16:53:28 +0000 |
commit | 459e7bd4622ea5bb8e90511b5fc6c7d8058dbd5f (patch) | |
tree | 94e9b872457cf9ec3ea841c3b1fb129a2b2d4a73 /ghc/compiler/rename/Rename.lhs | |
parent | a5f9c20a13e80f10a36246f1b4dbdae0f1a93187 (diff) | |
download | haskell-459e7bd4622ea5bb8e90511b5fc6c7d8058dbd5f.tar.gz |
[project @ 2000-11-17 16:53:27 by simonmar]
Results of today's hacking:
- We can now execute expressions from the GHCi prompt. However,
a problem with the typechecker environment means that identifiers
from outside the current module aren't resolved :-(
- loading up a multi-module program in the interpreter seems to
work. Interpreting is kinda slow (ok, very slow), but I'm hoping
it'll get better when I compile the interpreter w/ optimisation.
- :set sort of works - you can do ":set -dshow-passes", for example
- lots of bugfixes, etc.
Diffstat (limited to 'ghc/compiler/rename/Rename.lhs')
-rw-r--r-- | ghc/compiler/rename/Rename.lhs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ghc/compiler/rename/Rename.lhs b/ghc/compiler/rename/Rename.lhs index 841d7fc976..afc43b6547 100644 --- a/ghc/compiler/rename/Rename.lhs +++ b/ghc/compiler/rename/Rename.lhs @@ -110,7 +110,12 @@ renameExpr dflags hit hst pcs this_module expr ; renameSource dflags hit hst pcs this_module $ initRnMS rdr_env emptyLocalFixityEnv SourceMode $ - (rnExpr expr `thenRn` \ (e,_) -> returnRn (Just (print_unqual, e))) + ( rnExpr expr `thenRn` \ (e,_) -> + + doptRn Opt_D_dump_rn `thenRn` \ dump_rn -> + ioToRnM (dumpIfSet dump_rn "Renamer:" (ppr e)) `thenRn_` + + returnRn (Just (print_unqual, e))) } | otherwise |