yavie-0.0.1: yet another visual editor

Yavie

Documentation

runYavie :: (Monad m, RefMonad m (EventState Event (Editor c))) => YavieConfig m iface c -> m ()Source

class RefMonad m a Source

Instances

data YavieConfig m iface c Source

Constructors

YavieConfig 

Fields

isEventDriven :: Bool
 
withInitEditor :: Int -> Int -> (Editor c -> m (Editor c)) -> m ()
 
displaySize :: iface -> m (Int, Int)
 
initialize :: m iface
 
supplyEvent :: iface -> (Event -> m Bool) -> m ()
 
finalize :: iface -> m ()
 
drawDisplay :: iface -> m (Editor c) -> m ()
 
keybind :: Keybind c
 
romode :: Keybind c
 
getReadOnlyFlag :: m Bool
 
runAction :: Editor c -> m (Editor c)
 

bind :: (e -> EventMonad e c ()) -> EventMonad e c ()