| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Reflex.Vty.Host
Description
Synopsis
- type VtyApp t m = MonadVtyApp t m => DisplayRegion -> Event t Event -> m (VtyResult t)
- data VtyResult t = VtyResult {- _vtyResult_picture :: Behavior t Picture
- _vtyResult_shutdown :: Event t ()
 
- getDefaultVty :: IO Vty
- runVtyApp :: (forall t m. VtyApp t m) -> IO ()
- runVtyAppWithHandle :: Vty -> (forall t m. VtyApp t m) -> IO ()
- type MonadVtyApp t m = (Reflex t, MonadHold t m, MonadHold t (Performable m), MonadFix m, MonadFix (Performable m), PrimMonad (HostFrame t), ReflexHost t, MonadIO (HostFrame t), Ref m ~ IORef, Ref (HostFrame t) ~ IORef, MonadRef (HostFrame t), NotReady t m, TriggerEvent t m, PostBuild t m, PerformEvent t m, MonadIO m, MonadIO (Performable m), Adjustable t m)
- type VtyEvent = Event
Documentation
Arguments
| = MonadVtyApp t m | |
| => DisplayRegion | The initial display size (updates to this come as events) | 
| -> Event t Event | Vty input events. | 
| -> m (VtyResult t) | The output of the  | 
A functional reactive vty application.
The output of a VtyApp.
Constructors
| VtyResult | |
| Fields 
 | |
getDefaultVty :: IO Vty Source #
Returns the standard vty configuration with mouse mode enabled.
type MonadVtyApp t m = (Reflex t, MonadHold t m, MonadHold t (Performable m), MonadFix m, MonadFix (Performable m), PrimMonad (HostFrame t), ReflexHost t, MonadIO (HostFrame t), Ref m ~ IORef, Ref (HostFrame t) ~ IORef, MonadRef (HostFrame t), NotReady t m, TriggerEvent t m, PostBuild t m, PerformEvent t m, MonadIO m, MonadIO (Performable m), Adjustable t m) Source #
The constraints necessary to run a VtyApp. See runVtyAppWithHandle for more
 on why each of these are necessary and how they can be fulfilled.