[Haskell-cafe] Convert a function to a string of operators?

Evgeny Grablyk evgeny.grablyk at gmail.com
Fri Mar 4 21:32:45 CET 2011


I was wondering if it was possible to "convert" a function (which may
also call functions) to a plain list of operators on parameters.

foo a b = a + b
bar a b = a * b

baw a b c = bar (foo a b) c
baw' a b c = (a + b) * c

Any way to get `baw'' from `baw'?  Preferrably as a String.


More information about the Haskell-Cafe mailing list