[Haskell] pretty printing Haskell code with auto parens?

Conal Elliott conal at conal.net
Wed Apr 13 13:02:51 EDT 2005


Never mind.  I rolled my own.  If you need a HsExp parens inserter, just
holler.  - Conal
 
-----Original Message-----
From: Conal Elliott [mailto:conal at conal.net] 
Sent: Tuesday, April 12, 2005 6:33 PM
To: 'haskell at haskell.org'
Subject: RE: [Haskell] pretty printing Haskell code with auto parens?
 
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 at haskell.org [mailto:haskell-bounces at haskell.org]
On Behalf Of Conal Elliott
Sent: Friday, April 08, 2005 3:54 PM
To: haskell at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org//pipermail/haskell/attachments/20050413/6a2c5529/attachment.htm


More information about the Haskell mailing list