[project @ 2002-07-04 10:38:49 by simonmar]
authorsimonmar <unknown>
Thu, 4 Jul 2002 10:38:49 +0000 (10:38 +0000)
committersimonmar <unknown>
Thu, 4 Jul 2002 10:38:49 +0000 (10:38 +0000)
commit91ccd2728e9df26ceaeca0096f4445c61ba44371
tree6bb135c1e062c6b745cc1e93603809c652283851
parent37bb88b9f2a8764cdc7f44fd49c36903e6c514f0
[project @ 2002-07-04 10:38:49 by simonmar]
In hPutLitString, catch the empty string case before calling hPutBuf.
Some older versions of hPutBufFull choke on a zero-length buffer.

Fixes occasional problems with the Sparc native code generator, which
uses SLIT("") in a couple of places.
ghc/compiler/utils/Pretty.lhs