Fwd: Generating valid Haskell code using the GHC API pretty
printer
Sittampalam, Ganesh
ganesh.sittampalam at credit-suisse.com
Thu Jul 23 07:05:30 EDT 2009
Niklas Broberg wrote:
>> I believe, Language.Haskell.Pretty can properly output haskell code
>> (and the GHC API should be able to do so, too. Does the GHC API
>> output tabs?)
>
> Surely you mean Language.Haskell.Exts.Pretty, right? ;-)
>
> The haskell-src-exts library does not (yet) support full
> round-tripping source-to-source, so the generated output will be
> different from what was read. But it will at least produce valid
> output. Hopefully in a few months' time it will do the full
> round-tripping as well, at least that's the plan.
>
> In general, unless you actually want to use any other components of
> the GHC API, e.g. evaluate your code,
The original post did mention the need for typechecking.
Cheers,
Ganesh
===============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
===============================================================================
More information about the Glasgow-haskell-users
mailing list