Safe Haskell | None |
---|---|
Language | Haskell2010 |
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, Adjustable t m, MonadCatch m, MonadFix (Performable m), MonadFix m, MonadHold t (Performable m), MonadHold t m, MonadIO (HostFrame t), MonadIO (Performable m), MonadIO m, MonadMask m, MonadRef (HostFrame t), MonadThrow m, NotReady t m, PerformEvent t m, PostBuild t m, PrimMonad (HostFrame t), Ref (HostFrame t) ~ IORef, Ref m ~ IORef, ReflexHost t, TriggerEvent t m)
- type VtyEvent = Event
Documentation
= 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
.
VtyResult | |
|
getDefaultVty :: IO Vty Source #
Returns the standard vty configuration with mouse mode enabled.
type MonadVtyApp t m = (Reflex t, Adjustable t m, MonadCatch m, MonadFix (Performable m), MonadFix m, MonadHold t (Performable m), MonadHold t m, MonadIO (HostFrame t), MonadIO (Performable m), MonadIO m, MonadMask m, MonadRef (HostFrame t), MonadThrow m, NotReady t m, PerformEvent t m, PostBuild t m, PrimMonad (HostFrame t), Ref (HostFrame t) ~ IORef, Ref m ~ IORef, ReflexHost t, TriggerEvent 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.