From 84323448ca9526b91181d361efaa506c67f9813e Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Tue, 15 Nov 2011 03:26:50 +0100 Subject: get ready for GHC 7.4: Num a no longer implies (Eq a, Show a) Ignore-this: faa34d69ddd27b98c6507740b42c9e97 darcs-hash:20111115022650-76d51-10a2e23210b65268ffa3aa606ebba72b6986e77e.gz --- XMonad/Hooks/DebugKeyEvents.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'XMonad/Hooks') diff --git a/XMonad/Hooks/DebugKeyEvents.hs b/XMonad/Hooks/DebugKeyEvents.hs index edacb6c..af8184c 100644 --- a/XMonad/Hooks/DebugKeyEvents.hs +++ b/XMonad/Hooks/DebugKeyEvents.hs @@ -81,7 +81,7 @@ debugKeyEvents (KeyEvent {ev_event_type = t, ev_state = m, ev_keycode = code}) debugKeyEvents _ = return (All True) -- | Convenient showHex variant -hex :: Integral n => n -> String +hex :: (Integral n, Show n) => n -> String hex v = "0x" ++ showHex v "" -- | Convert a modifier mask into a useful string -- cgit v1.2.3