--
-- Fast write-buffered Handles
--
--- (c) The University of Glasgow 2005
+-- (c) The University of Glasgow 2005-2006
--
-- This is a simple abstraction over Handles that offers very fast write
-- buffering, but without the thread safety that Handles provide. It's used
--
-----------------------------------------------------------------------------
+{-# OPTIONS_GHC -w #-}
+-- The above warning supression flag is a temporary kludge.
+-- While working on this module you are encouraged to remove it and fix
+-- any warnings in the module. See
+-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
+-- for details
+
module BufWrite (
BufHandle(..),
newBufHandle,
import FastString
import FastMutInt
-import Panic ( panic )
-import Monad ( when )
-import Char ( ord )
+import Control.Monad ( when )
+import Data.Char ( ord )
import Foreign
-import IO
+import System.IO
import GHC.IOBase ( IO(..) )
-import System.IO ( hPutBuf )
import GHC.Ptr ( Ptr(..) )
-import GLAEXTS ( Int(..), Int#, Addr# )
+import GHC.Exts ( Int(..), Int#, Addr# )
-- -----------------------------------------------------------------------------