mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-31 02:43:47 -07:00
use hPrint instead of hPutStrLn
This commit is contained in:
@@ -166,7 +166,7 @@ io = liftIO
|
||||
-- | Lift an IO action into the X monad. If the action results in an IO
|
||||
-- exception, log the exception to stderr and continue normal execution.
|
||||
catchIO :: IO () -> X ()
|
||||
catchIO f = liftIO (f `catch` \e -> do hPutStrLn stderr (show e); hFlush stderr)
|
||||
catchIO f = liftIO (f `catch` \e -> hPrint stderr e >> hFlush stderr)
|
||||
|
||||
-- | spawn. Launch an external application
|
||||
spawn :: String -> X ()
|
||||
|
Reference in New Issue
Block a user