summaryrefslogtreecommitdiff
path: root/libraries/base/GHC/Handle.hs
blob: e99c40ac935eead5af5bea1a22c6c20f8b3cc321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{-# OPTIONS_HADDOCK hide #-}
-----------------------------------------------------------------------------
-- |
-- Module      :  GHC.Handle
-- Copyright   :  (c) The University of Glasgow, 1994-2001
-- License     :  see libraries/base/LICENSE
-- 
-- Maintainer  :  libraries@haskell.org
-- Stability   :  internal
-- Portability :  non-portable
--
-- Backwards-compatibility interface
--
-----------------------------------------------------------------------------

-- #hide

module GHC.Handle {-# DEPRECATED "use GHC.IO.Handle instead" #-} (
  withHandle, withHandle', withHandle_,
  wantWritableHandle, wantReadableHandle, wantSeekableHandle,

--  newEmptyBuffer, allocateBuffer, readCharFromBuffer, writeCharIntoBuffer,
--  flushWriteBufferOnly, flushWriteBuffer,
--  flushReadBuffer,
--  fillReadBuffer, fillReadBufferWithoutBlocking,
--  readRawBuffer, readRawBufferPtr,
--  readRawBufferNoBlock, readRawBufferPtrNoBlock,
--  writeRawBuffer, writeRawBufferPtr,

  ioe_closedHandle, ioe_EOF, ioe_notReadable, ioe_notWritable,

  stdin, stdout, stderr,
  IOMode(..), openFile, openBinaryFile, 
--  fdToHandle_stat,
  fdToHandle, fdToHandle',
  hFileSize, hSetFileSize, hIsEOF, isEOF, hLookAhead, hLookAhead_, 
  hSetBuffering, hSetBinaryMode,
  hFlush, hDuplicate, hDuplicateTo,

  hClose, hClose_help,

  HandlePosition, HandlePosn(..), hGetPosn, hSetPosn,
  SeekMode(..), hSeek, hTell,

  hIsOpen, hIsClosed, hIsReadable, hIsWritable, hGetBuffering, hIsSeekable,
  hSetEcho, hGetEcho, hIsTerminalDevice,

  hShow,

 ) where

import GHC.IO.IOMode
import GHC.IO.Handle
import GHC.IO.Handle.Internals
import GHC.IO.Handle.FD