1 {-# OPTIONS_HADDOCK hide #-}
2 -----------------------------------------------------------------------------
5 -- Copyright : (c) The University of Glasgow, 1994-2001
6 -- License : see libraries/base/LICENSE
8 -- Maintainer : libraries@haskell.org
9 -- Stability : internal
10 -- Portability : non-portable
12 -- Backwards-compatibility interface
14 -----------------------------------------------------------------------------
18 module GHC.Handle {-# DEPRECATED "use GHC.IO.Handle instead" #-} (
19 withHandle, withHandle', withHandle_,
20 wantWritableHandle, wantReadableHandle, wantSeekableHandle,
22 -- newEmptyBuffer, allocateBuffer, readCharFromBuffer, writeCharIntoBuffer,
23 -- flushWriteBufferOnly, flushWriteBuffer,
25 -- fillReadBuffer, fillReadBufferWithoutBlocking,
26 -- readRawBuffer, readRawBufferPtr,
27 -- readRawBufferNoBlock, readRawBufferPtrNoBlock,
28 -- writeRawBuffer, writeRawBufferPtr,
30 ioe_closedHandle, ioe_EOF, ioe_notReadable, ioe_notWritable,
32 stdin, stdout, stderr,
33 IOMode(..), openFile, openBinaryFile,
35 fdToHandle, fdToHandle',
36 hFileSize, hSetFileSize, hIsEOF, isEOF, hLookAhead, hLookAhead_,
37 hSetBuffering, hSetBinaryMode,
38 hFlush, hDuplicate, hDuplicateTo,
42 HandlePosition, HandlePosn(..), hGetPosn, hSetPosn,
43 SeekMode(..), hSeek, hTell,
45 hIsOpen, hIsClosed, hIsReadable, hIsWritable, hGetBuffering, hIsSeekable,
46 hSetEcho, hGetEcho, hIsTerminalDevice,
54 import GHC.IO.Handle.Internals
55 import GHC.IO.Handle.FD