yi-0.10.1: The Haskell-Scriptable Editor

LicenseGPL-2
Maintaineryi-devel@googlegroups.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010
Extensions
  • OverloadedStrings
  • FlexibleContexts
  • NondecreasingIndentation

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

p >>! act = p >> 'write' act

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

p >>=! act = p >>= 'write' . act

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

 ev ?>> proc = event ev >> proc

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

 ev ?>>! act = event ev >> write act

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

 ev ?*>> proc = events ev >> proc

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

 ev ?*>>! act = events ev >> write act

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

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