X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Data%2FArray%2FIO.hs;h=e7fd22878c0562a0569d70ec9e11b5eddb412031;hb=9fa9bc17072a58c0bae2cce4764d38677e96ac29;hp=af156966c212319922a4b64c6c208dcb49bd71b1;hpb=7de50399a42ee49b0473b7b6eea2b44a2f941a12;p=ghc-base.git diff --git a/Data/Array/IO.hs b/Data/Array/IO.hs index af15696..e7fd228 100644 --- a/Data/Array/IO.hs +++ b/Data/Array/IO.hs @@ -1,6 +1,6 @@ -{-# OPTIONS -#include "HsCore.h" #-} +{-# OPTIONS -#include "HsBase.h" #-} ----------------------------------------------------------------------------- --- +-- | -- Module : Data.Array.IO -- Copyright : (c) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/core/LICENSE) @@ -9,7 +9,7 @@ -- Stability : experimental -- Portability : non-portable -- --- $Id: IO.hs,v 1.4 2002/02/05 17:32:25 simonmar Exp $ +-- $Id: IO.hs,v 1.7 2002/04/24 16:31:43 simonmar Exp $ -- -- Mutable boxed/unboxed arrays in the IO monad. -- @@ -454,16 +454,16 @@ hPutArray handle (IOUArray (STUArray l u raw)) count -- --------------------------------------------------------------------------- -- Internal Utils -foreign import "__hscore_memcpy_dst_off" unsafe +foreign import ccall unsafe "__hscore_memcpy_dst_off" memcpy_baoff_ba :: RawBuffer -> Int -> RawBuffer -> CSize -> IO (Ptr ()) -foreign import "__hscore_memcpy_src_off" unsafe +foreign import ccall unsafe "__hscore_memcpy_src_off" memcpy_ba_baoff :: RawBuffer -> RawBuffer -> Int -> CSize -> IO (Ptr ()) illegalBufferSize :: Handle -> String -> Int -> IO a -illegalBufferSize handle fn (sz :: Int) = +illegalBufferSize handle fn sz = ioException (IOError (Just handle) InvalidArgument fn - ("illegal buffer size " ++ showsPrec 9 sz []) + ("illegal buffer size " ++ showsPrec 9 (sz::Int) []) Nothing) #endif /* __GLASGOW_HASKELL__ */