On Tue, Apr 12, 2005 at 06:33:13PM -0700, Conal Elliott wrote: > 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?
There is one included in 'hatchet' which I have succescfully reused in other projects. A bug is that it doesn't refix infix patterns, but that should be easy to fix. http://www.cs.mu.oz.au/~bjpop/hatchet.html You will probably have to write something to collect fixities from imported modules. -- John Meacham - ârepetae.netâjohnâ _______________________________________________ Haskell mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell
