[project @ 2002-07-04 10:38:49 by simonmar]
[ghc-hetmet.git] / ghc / compiler / utils / Pretty.lhs
index d3fe50a..bf7f10b 100644 (file)
@@ -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#)