[project @ 2003-07-24 07:49:33 by simonpj]
authorsimonpj <unknown>
Thu, 24 Jul 2003 07:49:33 +0000 (07:49 +0000)
committersimonpj <unknown>
Thu, 24 Jul 2003 07:49:33 +0000 (07:49 +0000)
commit68f6b9c9f4693df6ae761dd2651d06913b355152
tree2a33e0b8807c7895e604483dbc8b37dea390ef94
parent6096198cd629bddb79f902d11b92cb64b28c1a79
[project @ 2003-07-24 07:49:33 by simonpj]
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.
Text/PrettyPrint/HughesPJ.hs