aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Hooks/XPropManage.hs
diff options
context:
space:
mode:
authorAdam Vogt <vogt.adam@gmail.com>2012-11-09 02:35:06 +0100
committerAdam Vogt <vogt.adam@gmail.com>2012-11-09 02:35:06 +0100
commit7f324e08476792e522987867c0f8098eeb0e50e0 (patch)
treeb4deece8dd5395cc8ab39f73f6f36be50c07842f /XMonad/Hooks/XPropManage.hs
parent8210d1d6f72daa3a95dac7be71f3d3358dfe1191 (diff)
downloadXMonadContrib-7f324e08476792e522987867c0f8098eeb0e50e0.tar.gz
XMonadContrib-7f324e08476792e522987867c0f8098eeb0e50e0.tar.xz
XMonadContrib-7f324e08476792e522987867c0f8098eeb0e50e0.zip
Use Control.Exception.catch explitly to avoid warnings
Ignore-this: 2cebdfe604c581f2b4a644e9aed726c7 The base that comes with ghc-7.6.1 no longer includes Prelude.catch; so these modules were changed so that there is no warning for import Prelude hiding (catch) At the same time these changes should be compatible with older GHCs, since the catch being has never been the one in the Prelude. darcs-hash:20121109013506-1499c-c593662b0780eb49287efcbfe0e9796f7dd57c73.gz
Diffstat (limited to 'XMonad/Hooks/XPropManage.hs')
-rw-r--r--XMonad/Hooks/XPropManage.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/XMonad/Hooks/XPropManage.hs b/XMonad/Hooks/XPropManage.hs
index 8c2af48..1f94b92 100644
--- a/XMonad/Hooks/XPropManage.hs
+++ b/XMonad/Hooks/XPropManage.hs
@@ -18,8 +18,7 @@ module XMonad.Hooks.XPropManage (
xPropManageHook, XPropMatch, pmX, pmP
) where
-import Prelude hiding (catch)
-import Control.Exception
+import Control.Exception as E
import Data.Char (chr)
import Data.Monoid (mconcat, Endo(..))
@@ -76,7 +75,7 @@ xPropManageHook tms = mconcat $ map propToHook tms
getProp :: Display -> Window -> Atom -> X ([String])
getProp d w p = do
- prop <- io $ catch (getTextProperty d w p >>= wcTextPropertyToTextList d) (\(_ :: IOException) -> return [[]])
+ prop <- io $ E.catch (getTextProperty d w p >>= wcTextPropertyToTextList d) (\(_ :: IOException) -> return [[]])
let filt q | q == wM_COMMAND = concat . map splitAtNull
| otherwise = id
return (filt p prop)