yi-0.8.2: The Haskell-Scriptable Editor

Safe HaskellNone
LanguageHaskell2010

Yi.Keymap.Keys

Description

Combinators for building keymaps.

Synopsis

Documentation

module Yi.Event

textChar :: KeymapM Char Source

Parse any character that can be inserted in the text.

spec :: Key -> Event Source

Convert a special key into an event

(>>!) :: (MonadInteract m Action Event, YiAction a x, Show x) => m b -> a -> m () infixl 1 Source

(>>=!) :: (MonadInteract m Action Event, YiAction a x, Show x) => m b -> (b -> a) -> m () infixl 1 Source

(?>>) :: MonadInteract m action Event => Event -> m a -> m a infixr 0 Source

(?>>!) :: (MonadInteract m Action Event, YiAction a x, Show x) => Event -> a -> m () infixr 0 Source

(?*>>) :: MonadInteract m action Event => [Event] -> m a -> m a infixr 0 Source

(?*>>!) :: (MonadInteract m Action Event, YiAction a x, Show x) => [Event] -> a -> m () infixr 0 Source

optMod :: MonadInteract m w Event => (Event -> Event) -> Event -> m Event Source

optMod f ev produces a MonadInteract that consumes ev or f ev