turion / rhine

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

Lifting Clocks with liftIO #96

Closed ggreif closed 6 years ago

ggreif commented 6 years ago

I am toying around with using threepenny-guis UI monad in rhine. Since it is a newtype of a RWST-transformed IO action, this should be possible. Maybe it can even be provided generically if the destination monad has a MonadIO instance. I'll try to come up with an answer for this...

turion commented 6 years ago

Isn't this what you need: https://github.com/turion/rhine/blob/63fc173d93caea52cd2ec8d969f83ed3fbce433c/rhine/src/FRP/Rhine/Clock.hs#L256

ggreif commented 6 years ago

Yes, that did the trick! :-)