[Haskell-cafe] Network of GUI Controls - using MonadFix?

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Jun 24 04:49:56 EDT 2010

Hello Felipe,

Thursday, June 24, 2010, 5:00:55 AM, you wrote:

>> Is that something that MonadFix is meant to be used for?

> In current Gtk libraries, no.  You'll do something like
> However, if some library required you to supply the action while
> constructing the button, then I guess the answer would be "yes".

he may have his own high-level abstractions that combine create and
connect, in this case the answer is yes:

rdo btn1 <- createAndConnectBtn btn2
    btn2 <- createAndConnectBtn btn3
    btn3 <- createAndConnectBtn btn1

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list