turion / rhine

Haskell Functional Reactive Programming framework with type-level clocks
http://hackage.haskell.org/package/rhine
123 stars 21 forks source link

Implement rhine-gloss bindings with a more relaxed clock setting #23

Open turion opened 6 years ago

turion commented 6 years ago

Right now, rhine-gloss apps have to have a rigid clock topology. The advantage is a completely side-effect free framework, but the disadvantage is that they have to be basically synchronous.

It should be easy to use playIO from gloss and wormhole (or event) clocks in IO that communicate with gloss. They can then be incorporated in an app with a completely free clock topology.

turion commented 6 years ago

If we use playIO, we probably have to pump all three of its loops (picture generation, event handling, simulation step). Therefore, there should be a version for animateIO and simulateIO as well.