Safe Haskell | None |
---|
- data Action
- emptyAction :: Action
- type Interact ev a = I ev Action a
- type KeymapM a = Interact Event a
- type Keymap = KeymapM ()
- type KeymapEndo = Keymap -> Keymap
- type KeymapProcess = P Event Action
- data Yi = Yi {}
- data YiVar = YiVar {
- yiEditor :: !Editor
- threads :: ![ThreadId]
- yiSubprocessIdSupply :: !SubprocessId
- yiSubprocesses :: !(Map SubprocessId SubprocessInfo)
- newtype YiM a = YiM {}
- write :: (MonadInteract m Action ev, YiAction a x, Show x) => a -> m ()
- write' :: (MonadInteract m Action e, YiAction a x, Show x) => String -> a -> m ()
- withUI :: (UI -> IO a) -> YiM a
- unsafeWithEditor :: Config -> MVar YiVar -> EditorM a -> IO a
- withGivenBuffer :: BufferRef -> BufferM a -> YiM a
- withBuffer :: BufferM a -> YiM a
- readEditor :: (Editor -> a) -> YiM a
- catchDynE :: Exception exception => YiM a -> (exception -> YiM a) -> YiM a
- catchJustE :: Exception e => (e -> Maybe b) -> YiM a -> (b -> YiM a) -> YiM a
- handleJustE :: Exception e => (e -> Maybe b) -> (b -> YiM a) -> YiM a -> YiM a
- shutdown :: YiM ()
- class YiAction a x | a -> x where
- makeAction :: Show x => a -> Action
- data KeymapSet = KeymapSet {}
- startTopKeymapA :: T KeymapSet Keymap
- insertKeymapA :: T KeymapSet Keymap
- startInsertKeymapA :: T KeymapSet Keymap
- topKeymapA :: T KeymapSet Keymap
- extractTopKeymap :: KeymapSet -> Keymap
- modelessKeymapSet :: Keymap -> KeymapSet
Documentation
type KeymapEndo = Keymap -> KeymapSource
type KeymapProcess = P Event ActionSource
YiVar | |
|
The type of user-bindable functions
write :: (MonadInteract m Action ev, YiAction a x, Show x) => a -> m ()Source
write a
returns a keymap that just outputs the action a
.
withGivenBuffer :: BufferRef -> BufferM a -> YiM aSource
withBuffer :: BufferM a -> YiM aSource
readEditor :: (Editor -> a) -> YiM aSource
KeymapSet | |
|