Haskell extention and Implementing Callbacks with a list

David Sankel <[email protected]>
Newsgroups gmane.comp.lang.haskell.gui
Message-ID <[email protected]>
Hello,

I've got two Ideas:

1) Add a haskell extention (wouldn't this be
possible?) that allows for equality for functions. 
Maybe only valid for IO() functions.  Say we have:

a :: IO ()

  We know that (a == a) but a doesn't equal anything
else.  This would make the unregister process much
neater.


2)  Would it not be possible to do callbacks with
lists?

button [ onClick := [messageBox "hi there"] ]

add a callback:

set myButton [ onClick :~ (/a -> newFunction:a) ]

And if the onClick function found it had an empty
list, it would unregister the callback with the
underlying library.


David J. Sankel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.