On Thu, Jun 24, 2010 at 02:35:55AM +0200, Günther Schmidt wrote:
> Is that something that MonadFix is meant to be used for?
In current Gtk libraries, no. You'll do something like
do btns <- mapM createBtn [1..4]
mapM_ connect $ zip btns (tail $ cycle btns)
However, if some library required you to supply the action while
constructing the button, then I guess the answer would be "yes".
Cheers,
--
Felipe.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe