X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Futils%2FPretty.lhs;h=bf7f10b31ff422ddb6fb3a921f621000ee424413;hb=91ccd2728e9df26ceaeca0096f4445c61ba44371;hp=d3fe50a3df473fe03d2d7a3283252fc982b043c3;hpb=37bb88b9f2a8764cdc7f44fd49c36903e6c514f0;p=ghc-hetmet.git diff --git a/ghc/compiler/utils/Pretty.lhs b/ghc/compiler/utils/Pretty.lhs index d3fe50a..bf7f10b 100644 --- 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#)