[project @ 2002-05-09 13:16:29 by simonmar]
[ghc-base.git] / System / IO.hs
index fa34c15..904082c 100644 (file)
@@ -1,16 +1,14 @@
 {-# OPTIONS -fno-implicit-prelude #-}
 -----------------------------------------------------------------------------
--- 
+-- |
 -- Module      :  System.IO
 -- Copyright   :  (c) The University of Glasgow 2001
--- License     :  BSD-style (see the file libraries/core/LICENSE)
+-- License     :  BSD-style (see the file libraries/base/LICENSE)
 -- 
 -- Maintainer  :  libraries@haskell.org
 -- Stability   :  provisional
 -- Portability :  portable
 --
--- $Id: IO.hs,v 1.2 2001/07/03 11:37:50 simonmar Exp $
---
 -- The standard IO library.
 --
 -----------------------------------------------------------------------------
@@ -37,6 +35,7 @@ module System.IO (
     hGetPosn,                 -- :: Handle -> IO HandlePosn
     hSetPosn,                 -- :: HandlePosn -> IO ()
     hSeek,                    -- :: Handle -> SeekMode -> Integer -> IO ()
+    hTell,                    -- :: Handle -> IO Integer
     hWaitForInput,            -- :: Handle -> Int -> IO Bool
     hReady,                   -- :: Handle -> IO Bool
     hGetChar,                 -- :: Handle -> IO Char
@@ -92,6 +91,11 @@ module System.IO (
     hGetBuf,                  -- :: Handle -> Ptr a -> Int -> IO Int
  
     fixIO,                    -- :: (a -> IO a) -> IO a
+
+    hSetEcho,                  -- :: Handle -> Bool -> IO ()
+    hGetEcho,                  -- :: Handle -> IO Bool
+
+    hIsTerminalDevice,         -- :: Handle -> IO Bool
   ) where
 
 #ifdef __GLASGOW_HASKELL__
@@ -106,20 +110,7 @@ import GHC.Read
 import GHC.Show
 #endif
 
-import Data.Dynamic
-import Control.Monad.Fix
-
--- -----------------------------------------------------------------------------
--- MonadFix instance
-
-instance MonadFix IO where
-       mfix = fixIO
-
--- -----------------------------------------------------------------------------
--- Typeable instance for Handle
-
-#include "Dynamic.h"
-INSTANCE_TYPEABLE0(Handle,handleTc,"Handle")
+import System.IO.Error
 
 -- -----------------------------------------------------------------------------
 -- Standard IO