[Haskell-cafe] pretty printing with comments

Niklas Broberg niklas.broberg at gmail.com
Tue Oct 20 07:01:33 EDT 2009

Hi Pasqualino,

> I am looking at the haskell-src-ext library.
> It can parse files with comments and it can pretty print but, for what
> I can see it cannot do both :-)  (prettyPrint won't work on the
> structure returned by parseFileWithComments).

What you want is exactPrint, defined in
Language.Haskell.Exts.Annotated.ExactPrint. :-)



More information about the Haskell-Cafe mailing list