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-07-04 10:38:49 by simonmar]
[ghc-hetmet.git]
/
ghc
/
compiler
/
utils
/
Pretty.lhs
diff --git
a/ghc/compiler/utils/Pretty.lhs
b/ghc/compiler/utils/Pretty.lhs
index
d3fe50a
..
bf7f10b
100644
(file)
--- a/
ghc/compiler/utils/Pretty.lhs
+++ b/
ghc/compiler/utils/Pretty.lhs
@@
-1037,6
+1037,8
@@
printDoc mode hdl doc
hPutBuf = hPutBufFull
#endif
+ -- some versions of hPutBuf will barf if the length is zero
+hPutLitString handle a# 0# = return ()
hPutLitString handle a# l#
#if __GLASGOW_HASKELL__ < 411
= hPutBuf handle (A# a#) (I# l#)