From 44f99f3ed3a6af5a2289765fadf4df29887db5c2 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Mon, 8 Oct 2012 00:02:05 +0200 Subject: Fixes for warnings reported in github issue #71 --- src/Plugins/StdinReader.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Plugins/StdinReader.hs') diff --git a/src/Plugins/StdinReader.hs b/src/Plugins/StdinReader.hs index 935d76a..fddd0bc 100644 --- a/src/Plugins/StdinReader.hs +++ b/src/Plugins/StdinReader.hs @@ -14,11 +14,11 @@ module Plugins.StdinReader where -import Prelude hiding (catch) +import Prelude import System.Posix.Process import System.Exit import System.IO -import Control.Exception (SomeException(..),catch) +import Control.Exception (SomeException(..), handle) import Plugins data StdinReader = StdinReader @@ -26,8 +26,8 @@ data StdinReader = StdinReader instance Exec StdinReader where start StdinReader cb = do - cb =<< catch (hGetLineSafe stdin) - (\(SomeException e) -> do hPrint stderr e; return "") + cb =<< handle (\(SomeException e) -> do hPrint stderr e; return "") + (hGetLineSafe stdin) eof <- hIsEOF stdin if eof then exitImmediately ExitSuccess -- cgit v1.2.3