There once was a bug in Text.PrettyPrint.HughesPJ
causing it to print infinitely many spaces.
http://haskell.org/pipermail/glasgow-haskell-users/2001-November/002584.html
It seems this code has re-appeared in the ghc-6.0 libraries:
spaces 0 =
spaces n = ' ' : spaces (n - 1)
this should
HI!
WE ARE A GROUP OF STUDENTS TRYING TO MAKE A WEB APPLICATTION USING HSP, CGI AND WASH
(WEB AUTHORING SYSTEM HASKELL).
WE DOWNLOADED WASH, AND GHC COMPILER. WE COMPILED THE WHOLE APPLICATION WITH GHC BUT
WE NEED TO GENERATE A .EXE FROM WASH AND WE HAVE BEEN UNSUCCESSFUL. WE ARE WORKING ON
A
Johannes Waldmann writes:
:
| spaces 0 =
| spaces n = ' ' : spaces (n - 1)
|
| this should be replicate n ' ' or something
| that behaves nicely for negative arguments.
Like an n+k pattern? ;-)
___
Glasgow-haskell-users mailing list