Re: Generating valid Haskell code using the GHC API pretty printer

2009-08-18 Thread Jan Schaumlöffel
Hello, sorry for the delay in replying, I have been away from my computer during the last weeks. Simon Peyton-Jones wrote: > I've fixed GHC's pretty-printer to print do-notation using braces > and semi-colons, which is much more robust. I hope that's useful This is certainly useful, and it seem

RE: Generating valid Haskell code using the GHC API pretty printer

2009-07-23 Thread Simon Peyton-Jones
I've fixed GHC's pretty-printer to print do-notation using braces and semi-colons, which is much more robust. I hope that's useful SImon | -Original Message- | From: glasgow-haskell-users-boun...@haskell.org [mailto:glasgow-haskell-users- | boun...@haskell.org] On Behalf Of Jan Schaumlö

Re: Generating valid Haskell code using the GHC API pretty printer

2009-07-23 Thread Claus Reinke
Hallo Kiel!-) we are trying to use the GHC API for a source-to-source transformation on Haskell programs. The result of parsing and typechecking a module enables us to apply the transformation, but writing the transformed module back using the pretty printer (Outputable) generates invalid Haske