remove deprecated 'withObject'
authorSimon Marlow <simonmar@microsoft.com>
Fri, 11 Aug 2006 15:23:50 +0000 (15:23 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 11 Aug 2006 15:23:50 +0000 (15:23 +0000)
Foreign/Marshal/Utils.hs

index b62e618..f1071f9 100644 (file)
@@ -44,10 +44,6 @@ module Foreign.Marshal.Utils (
   --
   copyBytes,     -- :: Ptr a -> Ptr a -> Int -> IO ()
   moveBytes,     -- :: Ptr a -> Ptr a -> Int -> IO ()
-
-  -- ** DEPRECATED FUNCTIONS (don\'t use; they may disappear at any time)
-  --
-  withObject     -- :: Storable a => a -> (Ptr a -> IO b) -> IO b
 ) where
 
 import Data.Maybe
@@ -99,12 +95,6 @@ with val f  =
     res <- f ptr
     return res
 
--- old DEPRECATED name (don't use; may disappear at any time)
---
-withObject :: Storable a => a -> (Ptr a -> IO b) -> IO b
-{-# DEPRECATED withObject "use `with' instead" #-}
-withObject  = with
-
 
 -- marshalling of Boolean values (non-zero corresponds to 'True')
 -- -----------------------------