Skip to content

Instantly share code, notes, and snippets.

Created July 4, 2015 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/89c8d858a4a715ce21c6 to your computer and use it in GitHub Desktop.
Save anonymous/89c8d858a4a715ce21c6 to your computer and use it in GitHub Desktop.
class (Monad m, ReflexHost t, MonadReflexCreateTrigger t m) => MonadReflexHost t m | m -> t where
fireEventsAndRead :: [DSum (EventTrigger t)] -> (forall m'. (MonadReadEvent t m') => m' a) -> m a
subscribeEvent :: Event t a -> m (EventHandle t a) --TODO: Return a handle, and use them in fireEventsAnRead
runFrame :: PushM t a -> m a
runHostFrame :: HostFrame t a -> m a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment