From 790fd3ad02aa70296ee458a02193154c899f6886 Mon Sep 17 00:00:00 2001 From: Adam Vogt Date: Tue, 16 Nov 2010 00:26:54 +0100 Subject: Compatibility with mtl-1 and mtl-2 Ignore-this: 4fb7f279365992fe9e73388b0f4001ac darcs-hash:20101115232654-1499c-411b53c153acbcbf791150e3923a754abe530202.gz --- XMonad/Util/CustomKeys.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'XMonad/Util') diff --git a/XMonad/Util/CustomKeys.hs b/XMonad/Util/CustomKeys.hs index 998f9bc..e2e73ef 100644 --- a/XMonad/Util/CustomKeys.hs +++ b/XMonad/Util/CustomKeys.hs @@ -77,7 +77,7 @@ customize :: XConfig l -> (XConfig Layout -> [(KeyMask, KeySym)]) -> (XConfig Layout -> [((KeyMask, KeySym), X ())]) -> Reader (XConfig Layout) (M.Map (KeyMask, KeySym) (X ())) -customize conf ds is = Reader (keys conf) >>= delete ds >>= insert is +customize conf ds is = asks (keys conf) >>= delete ds >>= insert is delete :: (MonadReader r m, Ord a) => (r -> [a]) -> M.Map a b -> m (M.Map a b) delete dels kmap = asks dels >>= return . foldr M.delete kmap -- cgit v1.2.3