diff options
author | Adam Vogt <vogt.adam@gmail.com> | 2009-10-11 03:56:18 +0200 |
---|---|---|
committer | Adam Vogt <vogt.adam@gmail.com> | 2009-10-11 03:56:18 +0200 |
commit | 638a9d5a9022e451e6eea4cc66eb1cf4d2d65f03 (patch) | |
tree | 4b604e4f9bbb7d9c34fc24f298f34dfbf3f47e4b /Plugins/StdinReader.hs | |
parent | 1fd673d50d48ee3f7a4dc86eb6488cd26d976b4f (diff) | |
download | xmobar-638a9d5a9022e451e6eea4cc66eb1cf4d2d65f03.tar.gz xmobar-638a9d5a9022e451e6eea4cc66eb1cf4d2d65f03.tar.bz2 |
Support for base 4 without base-3 compatibility
Ignore-this: 6846a123ade5dc1164841e62beabbf71
darcs-hash:20091011015618-1499c-f91811df4a05f6e4d236faaa5f4b4050613253e1.gz
Diffstat (limited to 'Plugins/StdinReader.hs')
-rw-r--r-- | Plugins/StdinReader.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Plugins/StdinReader.hs b/Plugins/StdinReader.hs index a12b722..0c075e6 100644 --- a/Plugins/StdinReader.hs +++ b/Plugins/StdinReader.hs @@ -18,7 +18,7 @@ import Prelude hiding (catch) import System.Posix.Process import System.Exit import System.IO -import Control.Exception (catch) +import Control.Exception (SomeException(..),catch) import Plugins data StdinReader = StdinReader @@ -26,7 +26,7 @@ data StdinReader = StdinReader instance Exec StdinReader where start StdinReader cb = do - cb =<< catch (hGetLineSafe stdin) (\e -> do hPrint stderr e; return "") + cb =<< catch (hGetLineSafe stdin) (\(SomeException e) -> do hPrint stderr e; return "") eof <- hIsEOF stdin if eof then exitImmediately ExitSuccess |