Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type MonadHeadlessApp t m = (Adjustable t m, MonadFix m, MonadHold t m, MonadIO (HostFrame t), MonadIO (Performable m), MonadIO m, MonadRef (HostFrame t), NotReady t m, PerformEvent t m, PostBuild t m, PrimMonad (HostFrame t), Ref (HostFrame t) ~ IORef, Ref m ~ IORef, Reflex t, ReflexHost t, TriggerEvent t m)
- runHeadlessApp :: (forall t m. MonadHeadlessApp t m => m (Event t ())) -> IO ()
Documentation
type MonadHeadlessApp t m = (Adjustable t m, MonadFix m, MonadHold t m, MonadIO (HostFrame t), MonadIO (Performable m), MonadIO m, MonadRef (HostFrame t), NotReady t m, PerformEvent t m, PostBuild t m, PrimMonad (HostFrame t), Ref (HostFrame t) ~ IORef, Ref m ~ IORef, Reflex t, ReflexHost t, TriggerEvent t m) Source #
:: (forall t m. MonadHeadlessApp t m => m (Event t ())) | The action to be run in the headless FRP network. The FRP network is
closed at the first occurrence of the resulting |
-> IO () |
Run a headless FRP network. Inside the action, you will most probably use
the capabilities provided by the TriggerEvent
and PerformEvent
type
classes to interface the FRP network with the outside world. Useful for
testing. Each headless network runs on its own spider timeline.