@@ -32,7 +32,9 @@ import GHC.IO.Buffer (Buffer(..), CharBuffer, RawCharBuffer, bufferAdjustL,
32 withRawBuffer, writeCharBuf)
32 withRawBuffer, writeCharBuf)
33import GHC.IO.Handle.Internals (ioe_EOF, readTextDevice, wantReadableHandle_)
33import GHC.IO.Handle.Internals (ioe_EOF, readTextDevice, wantReadableHandle_)
34import GHC.IO.Handle.Types (Handle__(..), Newline(..))
34import GHC.IO.Handle.Types (Handle__(..), Newline(..))
35+#if !MIN_VERSION_base(4,6,0)
35import Prelude hiding (catch)
36import Prelude hiding (catch)
36import System.IO (Handle)
38import System.IO (Handle)
37import System.IO.Error (isEOFError)
39import System.IO.Error (isEOFError)
38import qualified Data.Text as T
40import qualified Data.Text as T