cvs commit: fptools/libraries/base/Text/PrettyPrint HughesPJ.hs
Simon Peyton Jones
simonpj@glass.cse.ogi.edu
Thu, 24 Jul 2003 00:49:34 -0700
simonpj 2003/07/24 00:49:34 PDT
Modified files:
libraries/base/Text/PrettyPrint HughesPJ.hs
Log:
A gross hack to stop the pretty-printer going into an infinite loop.
What happens is that 'indent' is given a negative number, and that
made it loop. This patch checks for the negative case, so at least
it doesn't loop -- but I don't understand why the indent ever goes negative,
so there's still something wrong here.
Revision Changes Path
1.12 +11 -2 fptools/libraries/base/Text/PrettyPrint/HughesPJ.hs