Thanks for asking Paul. The final blog in the tutorial series, which isn't finished yet, is going to be on adapting the reactive code to the IO Monad.
I've attached a simple BellMachine adapter (note that this doesn't work on windows due to a ghc bug) that you can play around with. Also note that errors in reactive prevent the more complex examples from working properly. Maybe you'd be interested in helping us out fixing them?
Have a good one,
David
Hi everybody,
I'm pretty new to the Reactive library, but I see it very useful; currently trying to get to work simple clock examples from http://netsuperbrain.com/blog, but can't find any simple examples of the full reactive control flow :( serfing this mail list gives little help too (or maybe I just can't search well). I mean, can somebody give a code snippet with the event (atTime 5 would be enough), the sink (simple IO, or the sound bell call, or anything observable at all) - I hope I understand the sink as an event handler correctly - and a main function call that fires the event. Just need a full example with an observable effect to start with
Sorry for a bit silly question, but anyway I think that a full example of that kind would be a good start point for beginners. Thank you
Regards,
Paul Sujkov