summaryrefslogtreecommitdiffhomepage
path: root/Plugins/StdinReader.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/StdinReader.hs')
-rw-r--r--Plugins/StdinReader.hs4
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