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 KeymapSet = KeymapSet {}
- topKeymapA :: T KeymapSet Keymap
- startInsertKeymapA :: T KeymapSet Keymap
- insertKeymapA :: T KeymapSet Keymap
- startTopKeymapA :: T KeymapSet Keymap
- extractTopKeymap :: KeymapSet -> Keymap
- modelessKeymapSet :: Keymap -> KeymapSet
- newtype YiM a = YiM {}
- withUI :: (UI -> IO a) -> YiM a
- unsafeWithEditor :: Config -> MVar YiVar -> EditorM a -> IO a
- withGivenBuffer :: MonadEditor m => BufferRef -> BufferM a -> m a
- withBuffer :: MonadEditor m => BufferM a -> m a
- readEditor :: MonadEditor m => (Editor -> a) -> m 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 Yi = Yi {}
- data YiVar = YiVar {
- yiEditor :: !Editor
- threads :: ![ThreadId]
- yiSubprocessIdSupply :: !SubprocessId
- yiSubprocesses :: !(Map SubprocessId SubprocessInfo)
- write :: (MonadInteract m Action ev, YiAction a x, Show x) => a -> m ()
Documentation
type KeymapEndo = Keymap -> KeymapSource
type KeymapProcess = P Event ActionSource
KeymapSet | |
|
The type of user-bindable functions
withGivenBuffer :: MonadEditor m => BufferRef -> BufferM a -> m aSource
withBuffer :: MonadEditor m => BufferM a -> m aSource
readEditor :: MonadEditor m => (Editor -> a) -> m aSource
class YiAction a x | a -> x whereSource
makeAction :: Show x => a -> ActionSource
YiVar | |
|
write :: (MonadInteract m Action ev, YiAction a x, Show x) => a -> m ()Source
write a
returns a keymap that just outputs the action a
.