SafeHaskell: Added SafeHaskell to base
[packages/base.git] / GHC / Handle.hs
1 {-# LANGUAGE Trustworthy #-}
2 {-# OPTIONS_HADDOCK hide #-}
3 -----------------------------------------------------------------------------
4 -- |
5 -- Module : GHC.Handle
6 -- Copyright : (c) The University of Glasgow, 1994-2001
7 -- License : see libraries/base/LICENSE
8 --
9 -- Maintainer : libraries@haskell.org
10 -- Stability : internal
11 -- Portability : non-portable
12 --
13 -- Backwards-compatibility interface
14 --
15 -----------------------------------------------------------------------------
16
17 -- #hide
18
19 module GHC.Handle {-# DEPRECATED "use GHC.IO.Handle instead" #-} (
20 withHandle, withHandle', withHandle_,
21 wantWritableHandle, wantReadableHandle, wantSeekableHandle,
22
23 -- newEmptyBuffer, allocateBuffer, readCharFromBuffer, writeCharIntoBuffer,
24 -- flushWriteBufferOnly, flushWriteBuffer,
25 -- flushReadBuffer,
26 -- fillReadBuffer, fillReadBufferWithoutBlocking,
27 -- readRawBuffer, readRawBufferPtr,
28 -- readRawBufferNoBlock, readRawBufferPtrNoBlock,
29 -- writeRawBuffer, writeRawBufferPtr,
30
31 ioe_closedHandle, ioe_EOF, ioe_notReadable, ioe_notWritable,
32
33 stdin, stdout, stderr,
34 IOMode(..), openFile, openBinaryFile,
35 -- fdToHandle_stat,
36 fdToHandle, fdToHandle',
37 hFileSize, hSetFileSize, hIsEOF, isEOF, hLookAhead, hLookAhead_,
38 hSetBuffering, hSetBinaryMode,
39 hFlush, hDuplicate, hDuplicateTo,
40
41 hClose, hClose_help,
42
43 HandlePosition, HandlePosn(..), hGetPosn, hSetPosn,
44 SeekMode(..), hSeek, hTell,
45
46 hIsOpen, hIsClosed, hIsReadable, hIsWritable, hGetBuffering, hIsSeekable,
47 hSetEcho, hGetEcho, hIsTerminalDevice,
48
49 hShow,
50
51 ) where
52
53 import GHC.IO.IOMode
54 import GHC.IO.Handle
55 import GHC.IO.Handle.Internals
56 import GHC.IO.Handle.FD
57