projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2002-09-13 15:02:25 by simonpj]
[ghc-hetmet.git]
/
ghc
/
compiler
/
utils
/
Pretty.lhs
diff --git
a/ghc/compiler/utils/Pretty.lhs
b/ghc/compiler/utils/Pretty.lhs
index
6a1c07f
..
ab9864b
100644
(file)
--- a/
ghc/compiler/utils/Pretty.lhs
+++ b/
ghc/compiler/utils/Pretty.lhs
@@
-1017,7
+1017,8
@@
pprCols = (100 :: Int) -- could make configurable
printDoc :: Mode -> Handle -> Doc -> IO ()
printDoc mode hdl doc
printDoc :: Mode -> Handle -> Doc -> IO ()
printDoc mode hdl doc
- = fullRender mode pprCols 1.5 put done doc
+ = do { fullRender mode pprCols 1.5 put done doc ;
+ hFlush hdl }
where
put (Chr c) next = hPutChar hdl c >> next
put (Str s) next = hPutStr hdl s >> next
where
put (Chr c) next = hPutChar hdl c >> next
put (Str s) next = hPutStr hdl s >> next