[Haskell-cafe] wxHaskell: convenience functions

2005-09-16 Thread Mark Carter
I'm experimenting with wxHaskell, and I've got something like: main = run mainFrame mainFrame = do -- main application frame ... cbEdit - checkBox p1 [text := Edit Mode, on command ::= onCbEdit textlog] ... where ... It would be useful to have some convenience function,

Re: [Haskell-cafe] wxHaskell: convenience functions

2005-09-16 Thread Mark Carter
Actually, I can see how my requirement of not wanting to pass in cbEdit might not be so good. From an FP point of view, that's just asking for trouble. A better solution would appear to be to put the cbEdit in as a parameter, and just face the fact that all callers will be required to pass an

Re: [Haskell-cafe] wxHaskell: convenience functions

2005-09-16 Thread Mark Carter
Re: [Haskell-cafe] wxHaskell: convenience functions Actually, I can see how my requirement of not wanting to pass in cbEdit might not be so good. From an FP point of view, that's just asking for trouble. A better solution would appear to be to put the cbEdit in as a parameter, and just face

Re: [Haskell-cafe] wxHaskell: convenience functions

2005-09-16 Thread David Roundy
On Fri, Sep 16, 2005 at 06:30:54PM +0100, Mark Carter wrote: Actually, I can see how my requirement of not wanting to pass in cbEdit might not be so good. From an FP point of view, that's just asking for trouble. A better solution would appear to be to put the cbEdit in as a parameter, and