base-compat-0.14.1: A compatibility layer for base
Safe HaskellSafe-Inferred
LanguageHaskell2010

Foreign.Marshal.Alloc.Compat

Documentation

calloc :: Storable a => IO (Ptr a) #

callocBytes :: Int -> IO (Ptr a) #

alloca :: Storable a => (Ptr a -> IO b) -> IO b #

allocaBytes :: Int -> (Ptr a -> IO b) -> IO b #

allocaBytesAligned :: Int -> Int -> (Ptr a -> IO b) -> IO b #

free :: Ptr a -> IO () #

malloc :: Storable a => IO (Ptr a) #

mallocBytes :: Int -> IO (Ptr a) #

realloc :: forall a b. Storable b => Ptr a -> IO (Ptr b) #

reallocBytes :: Ptr a -> Int -> IO (Ptr a) #

calloc :: Storable a => IO (Ptr a) #

callocBytes :: Int -> IO (Ptr a) #