Safe Haskell | None |
---|---|
Language | Haskell2010 |
Combinators for building keymaps.
- module Yi.Event
- module Yi.Interact
- printableChar :: MonadInteract m w Event => m Char
- textChar :: KeymapM Char
- charOf :: MonadInteract m w Event => (Event -> Event) -> Char -> Char -> m Char
- shift :: Event -> Event
- meta :: Event -> Event
- ctrl :: Event -> Event
- super :: Event -> Event
- hyper :: Event -> Event
- spec :: Key -> Event
- char :: Char -> Event
- (>>!) :: (MonadInteract m Action Event, YiAction a x, Show x) => m b -> a -> m ()
- (>>=!) :: (MonadInteract m Action Event, YiAction a x, Show x) => m b -> (b -> a) -> m ()
- (?>>) :: MonadInteract m action Event => Event -> m a -> m a
- (?>>!) :: (MonadInteract m Action Event, YiAction a x, Show x) => Event -> a -> m ()
- (?*>>) :: MonadInteract m action Event => [Event] -> m a -> m a
- (?*>>!) :: (MonadInteract m Action Event, YiAction a x, Show x) => [Event] -> a -> m ()
- ctrlCh :: Char -> Event
- metaCh :: Char -> Event
- hyperCh :: Char -> Event
- optMod :: MonadInteract m w Event => (Event -> Event) -> Event -> m Event
- pString :: MonadInteract m w Event => String -> m [Event]
Documentation
module Yi.Event
module Yi.Interact
printableChar :: MonadInteract m w Event => m Char 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