1 {-# OPTIONS -fno-implicit-prelude #-}
2 -----------------------------------------------------------------------------
4 -- Module : Foreign.StablePtr
5 -- Copyright : (c) The University of Glasgow 2001
6 -- License : BSD-style (see the file libraries/core/LICENSE)
8 -- Maintainer : ffi@haskell.org
9 -- Stability : provisional
10 -- Portability : portable
12 -- $Id: StablePtr.hs,v 1.4 2002/04/24 16:31:44 simonmar Exp $
16 -----------------------------------------------------------------------------
18 module Foreign.StablePtr
19 ( StablePtr, -- abstract
20 , newStablePtr -- :: a -> IO (StablePtr a)
21 , deRefStablePtr -- :: StablePtr a -> IO a
22 , freeStablePtr -- :: StablePtr a -> IO ()
23 , castStablePtrToPtr -- :: StablePtr a -> Ptr ()
24 , castPtrToStablePtr -- :: Ptr () -> StablePtr a
27 #ifdef __GLASGOW_HASKELL__