Monday, July 06, 2009

Okay ... I got a little confused by map.map working on list of lists!

so it turns out that f.g = \x -> f (g x)

so, map.map = \f -> map (map f)

(map.map) (+1) list = (\f -> map (map f)) (+1) list = map (map (+1)) list
Everything seems already done!

I always found writing GUI code boring - always involved boilerplate code - be it, X windows, Windows, AWT ....

So, I was thinking of writing some automation in Haskell that could generate Swing code - looks like SwingML does just that - not in Haskell though.

Followers