X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Foreign%2FStorable.hs;h=3d57481f6ff397474383d0fc7027d0983ac93173;hb=f7a485978f04e84b086f1974b88887cc72d832d0;hp=67cbc7b6b55daf61c14870f3c655dbc255409939;hpb=5545727d5a6a1fc6d5d00f32a92a8fdf0fb7ca77;p=ghc-base.git diff --git a/Foreign/Storable.hs b/Foreign/Storable.hs index 67cbc7b..3d57481 100644 --- a/Foreign/Storable.hs +++ b/Foreign/Storable.hs @@ -1,22 +1,24 @@ {-# OPTIONS -fno-implicit-prelude #-} ----------------------------------------------------------------------------- --- +-- | -- Module : Foreign.Storable -- Copyright : (c) The FFI task force 2001 --- License : BSD-style (see the file libraries/core/LICENSE) +-- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : ffi@haskell.org -- Stability : provisional -- Portability : portable -- --- $Id: Storable.hs,v 1.2 2001/07/03 11:37:50 simonmar Exp $ --- --- A class for primitive marshaling +-- The module "Storable" provides most elementary support for +-- marshalling and is part of the language-independent portion of the +-- Foreign Function Interface (FFI), and will normally be imported via +-- the "Foreign" module. -- ----------------------------------------------------------------------------- module Foreign.Storable - ( Storable( + ( -- * The 'Storable' class + Storable( sizeOf, -- :: a -> Int alignment, -- :: a -> Int peekElemOff, -- :: Ptr a -> Int -> IO a @@ -24,8 +26,7 @@ module Foreign.Storable peekByteOff, -- :: Ptr b -> Int -> IO a pokeByteOff, -- :: Ptr b -> Int -> a -> IO () peek, -- :: Ptr a -> IO a - poke, -- :: Ptr a -> a -> IO () - destruct) -- :: Ptr a -> IO () + poke) -- :: Ptr a -> a -> IO () ) where #ifdef __GLASGOW_HASKELL__