diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2024-03-04 01:46:17 -0700 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2024-03-04 01:46:17 -0700 |
| commit | 9cd976a21d0c78e6c9291685b4d2efcb6d65a1d7 (patch) | |
| tree | 12d80e8c31152c4b392e90190aa57134f6dcf06b /Setup.hs | |
| parent | 6ebfbf75a551c3cb464b410654249d9a11204c17 (diff) | |
| download | montis-9cd976a21d0c78e6c9291685b4d2efcb6d65a1d7.tar.gz montis-9cd976a21d0c78e6c9291685b4d2efcb6d65a1d7.tar.bz2 montis-9cd976a21d0c78e6c9291685b4d2efcb6d65a1d7.zip | |
Added a new KeysM monad.
This monad allows keybindings to look and feel like one is writing
blocking code with constructs like:
key <- nextKey
when (key == x) $ do
key2 <- nextKey
...
...
but this code does not block or do any io shenanigans, it under the hood
just changes the handler on the state. It seems pretty awesome and opens
the doors for some pretty expressive key bindings.
Diffstat (limited to 'Setup.hs')
0 files changed, 0 insertions, 0 deletions