xmonad.hs:112:7: error:
• Couldn't match expected type ‘((KeyMask, KeySym), m0 a0)
-> ((KeyMask, KeySym), X ())’
with actual type ‘((KeyMask, KeySym), X ())’
• The function ‘((modm, xK_b), sendMessage ToggleStruts)’
is applied to one argument,
but its type ‘((KeyMask, KeySym), X ())’ has none
In the expression:
((modm, xK_b), sendMessage ToggleStruts)
((modm .|. shiftMask, xK_q), io (exitWith ExitSuccess))
In the first argument of ‘(++)’, namely
‘[((modm, xK_b), sendMessage ToggleStruts)
((modm .|. shiftMask, xK_q), io (exitWith ExitSuccess)),
((modm, xK_q), spawn "xmonad --recompile; xmonad --restart"),
((modm .|. shiftMask, xK_Return), spawn "xfce4-terminal"),
((modm, xK_p),
spawn "exe=`dmenu_path | dmenu` && eval \"exec $exe\""),
....]’
|
112 | ((modm, xK_b ), sendMessage ToggleStruts)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
用 xmonad 的大神给指点一下方向