kmonad-0.4.2: Advanced keyboard remapping utility
Safe HaskellSafe-Inferred
LanguageHaskell2010

KMonad.Model.Dispatch

Synopsis

Documentation

The Dispatch environment, describing what values are required to perform the Dispatch operations, and constructors for creating such an environment.

data Dispatch Source #

The Dispatch environment

mkDispatch :: MonadUnliftIO m => m KeyEvent -> ContT r m Dispatch Source #

Create a new Dispatch environment in a ContT environment

The supported Dispatch operations.

pull :: HasLogFunc e => Dispatch -> RIO e KeyEvent Source #

Return the next event, this will return either (in order of precedence): 1. The next item to be rerun 2. A new item read from the OS 3. Pausing until either 1. or 2. triggers

rerun :: HasLogFunc e => Dispatch -> [KeyEvent] -> RIO e () Source #

Add a list of elements to be rerun.