aboutsummaryrefslogtreecommitdiffstats
path: root/Main.hs
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2008-01-28 06:46:51 +0100
committerSpencer Janssen <sjanssen@cse.unl.edu>2008-01-28 06:46:51 +0100
commitca7f09d7bed6474878ad00c92e5f6f7ddddd536d (patch)
treea88bc56eaa0410e890bcb25a313665b2ce3ae23e /Main.hs
parent2fc212c92a6b4d51c12520109d24f7d69a64d2d3 (diff)
downloadxmonad-ca7f09d7bed6474878ad00c92e5f6f7ddddd536d.tar.gz
xmonad-ca7f09d7bed6474878ad00c92e5f6f7ddddd536d.tar.xz
xmonad-ca7f09d7bed6474878ad00c92e5f6f7ddddd536d.zip
Generalize the type of catchIO, use it in Main.hs
darcs-hash:20080128054651-a5988-263142a13a2bb7dbe0d0084456fbe29b7b603e47.gz
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Main.hs b/Main.hs
index 2be135c..00e8d59 100644
--- a/Main.hs
+++ b/Main.hs
@@ -16,7 +16,6 @@ module Main (main) where
import XMonad
-import Control.Exception (handle)
import System.IO
import System.Info
import System.Environment
@@ -31,7 +30,7 @@ import qualified Properties
main :: IO ()
main = do
args <- getArgs
- let launch = handle (hPrint stderr) buildLaunch >> xmonad defaultConfig
+ let launch = catchIO buildLaunch >> xmonad defaultConfig
case args of
[] -> launch
["--resume", _] -> launch