projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#2050: save the GHCi history in ~/.ghc/ghci_history
[ghc-hetmet.git]
/
compiler
/
simplCore
/
SimplCore.lhs
diff --git
a/compiler/simplCore/SimplCore.lhs
b/compiler/simplCore/SimplCore.lhs
index
fc5b903
..
851ff5d
100644
(file)
--- a/
compiler/simplCore/SimplCore.lhs
+++ b/
compiler/simplCore/SimplCore.lhs
@@
-61,7
+61,7
@@
import Vectorise ( vectorise )
import UniqSupply ( UniqSupply, mkSplitUniqSupply, splitUniqSupply )
import IO ( hPutStr, stderr )
import Outputable
import UniqSupply ( UniqSupply, mkSplitUniqSupply, splitUniqSupply )
import IO ( hPutStr, stderr )
import Outputable
-import List ( partition )
+import List ( partition, intersperse )
import Maybes
\end{code}
import Maybes
\end{code}
@@
-463,8
+463,11
@@
simplifyPgm mode switches hsc_env us imp_rule_base guts
where
dflags = hsc_dflags hsc_env
phase_info = case mode of
where
dflags = hsc_dflags hsc_env
phase_info = case mode of
- SimplGently -> "gentle"
- SimplPhase n -> show n
+ SimplGently -> "gentle"
+ SimplPhase n ss -> shows n
+ . showString " ["
+ . showString (concat $ intersperse "," ss)
+ $ "]"
dump_phase = shouldDumpSimplPhase dflags mode
dump_phase = shouldDumpSimplPhase dflags mode
@@
-486,7
+489,7
@@
simplifyPgm mode switches hsc_env us imp_rule_base guts
#endif
-- Subtract 1 from iteration_no to get the
-- number of iterations we actually completed
#endif
-- Subtract 1 from iteration_no to get the
-- number of iterations we actually completed
- return ("Simplifier baled out", iteration_no - 1, counts, binds)
+ return ("Simplifier bailed out", iteration_no - 1, counts, binds)
}
-- Try and force thunks off the binds; significantly reduces
}
-- Try and force thunks off the binds; significantly reduces