[Haskell-cafe] What's a thread doing / Erlang-style processes / Message passing

Joel Reymont joelr1 at gmail.com
Tue Dec 6 12:30:32 EST 2005


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/







More information about the Haskell-Cafe mailing list