I'm currently trying to use Helm to write a game in Haskell. I know Elm and am very familiar with FRP in Elm. In Elm there is a very useful Signal function called merge which takes two signals and chooses the first one to fire (if they go at the same time it chooses the left one by default). There doesn't appear to be a way to do something similar in Helm. I notice there is a `combine` function but it doesn't seem to do the same thing. Is there a way to write the merge in Helm? I understand I am probably missing something, so any form of explanation would be greatly appreciated.Thank you!
--
You received this message because you are subscribed to the Google Groups "Helm Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to helm-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to helm-dev+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to helm-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Helm Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to helm-dev+u...@googlegroups.com.
Hi Kira,
I had a quick stab at implementing merge today. What I said about the Monoid instance was probably misleading as Signal cannot be a Monoid because there is no such thing as an empty Signal. Sorry if that sent you off on the wrong track at all.
I haven’t really tested my implementation yet so I would be grateful if you could see if it behaves as you would expect it.
Cheers,
Kaspar