Assuming I typed events like that I think I would need a typed sink for them as well. I only have one sink for the events and that is my message queue. I expect users to want User X, User Y, User Z within the same module and that's why I used Dynamic.

On Dec 6, 2005, at 4:07 PM, Bulat Ziganshin wrote:

creators of Data.List library also don't know about all your types,
but nevertheless you are use all theirs functions ;)

if set of messages is defined at compile time, then it's just:

data Event a = Quit
             | ....
             | User a

--
http://wagerlabs.com/





_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to