No reply yet.

 

Alternatively, does anyone happen to have a HsExp->HsExp (for Language.Haskell.Syntax) pass that inserts disambiguating parentheses as needed, to be applied just before pretty-printing?

 

Cheers,

 

- Conal

 

-----Original Message-----
From: haskell-bounces@haskell.org [mailto:haskell-bounces@haskell.org] On Behalf Of Conal Elliott
Sent:
Friday, April 08, 2005 3:54 PM
To: haskell@haskell.org
Subject: [Haskell] pretty printing Haskell code with auto parens?

 

What pretty printers are available for Haskell code (not necessarily complete) that handle automatic insertion of minimally required parentheses?  I assumed that Language.Haskell.Pretty did that, but apparently it relies on manual insertion of parentheses in the abstract syntax.

 

Thanks,  - Conal