aboutsummaryrefslogtreecommitdiff
path: root/src/Rahm/Desktop/Submap.hs
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-04-16 00:20:03 -0600
committerJosh Rahm <joshuarahm@gmail.com>2022-10-09 12:19:46 -0600
commit1ba923704e7889205f574de1b85f48773ec6aca7 (patch)
tree84b248671ab8918a12bb95a3ca62fb1912b934f2 /src/Rahm/Desktop/Submap.hs
parent9e5d56cfb2508d9f5e58bf681265d0f1070b3f35 (diff)
downloadrde-1ba923704e7889205f574de1b85f48773ec6aca7.tar.gz
rde-1ba923704e7889205f574de1b85f48773ec6aca7.tar.bz2
rde-1ba923704e7889205f574de1b85f48773ec6aca7.zip
fix some hlint warnings
Diffstat (limited to 'src/Rahm/Desktop/Submap.hs')
-rw-r--r--src/Rahm/Desktop/Submap.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Rahm/Desktop/Submap.hs b/src/Rahm/Desktop/Submap.hs
index ad245ab..5db8928 100644
--- a/src/Rahm/Desktop/Submap.hs
+++ b/src/Rahm/Desktop/Submap.hs
@@ -76,12 +76,12 @@ mapNextStringWithKeysym fn = do
Nothing -> return Nothing
io $ ungrabKeyboard d currentTime
- case ret of
+ case ret of
Just (m, str, keysym) -> fn m keysym str
Nothing -> return ()
{- Like submap, but on the character typed rather than the kysym. -}
-mapNextString :: (KeyMask -> String -> X ()) -> X ()
+mapNextString :: (KeyMask -> String -> X ()) -> X ()
mapNextString fn = mapNextStringWithKeysym (\m _ s -> fn m s)
submapDefaultWithKey :: ((KeyMask, KeySym) -> X ()) -> Map (KeyMask, KeySym) (X ()) -> X ()