Edsko de Vries wrote:
Hi,

Is there a nice way to pretty-print such an expression with the minimal
number of brackets? I can come up with something, but I'm sure somebody
thought hard about this problem before and came up with a really nice
solution :)

Any hints or pointers would be appreciated,

Thanks,

You might find Norman Ramsey's paper on unparsing helpful:

http://citeseer.ist.psu.edu/194913.html
or google for
Norman Ramsey Unparsing

regards
allan


_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to