Hoogle Search
Within LTS Haskell 24.50 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mallocForeignPtrArray :: Storable a => Int -> IO (ForeignPtr a)base-compat Foreign.ForeignPtr.Safe.Compat This function is similar to mallocArray, but yields a memory area that has a finalizer attached that releases the memory area. As with mallocForeignPtr, it is not guaranteed that the block of memory was allocated by malloc.
mallocForeignPtrArray0 :: Storable a => Int -> IO (ForeignPtr a)base-compat Foreign.ForeignPtr.Safe.Compat This function is similar to mallocArray0, but yields a memory area that has a finalizer attached that releases the memory area. As with mallocForeignPtr, it is not guaranteed that the block of memory was allocated by malloc.
mallocForeignPtrBytes :: Int -> IO (ForeignPtr a)base-compat Foreign.ForeignPtr.Safe.Compat This function is similar to mallocForeignPtr, except that the size of the memory required is given explicitly as a number of bytes.
calloc :: Storable a => IO (Ptr a)base-compat Foreign.Marshal.Alloc.Compat Like malloc but memory is filled with bytes of value zero.
callocBytes :: Int -> IO (Ptr a)base-compat Foreign.Marshal.Alloc.Compat Like mallocBytes, but memory is filled with bytes of value zero.
callocArray :: Storable a => Int -> IO (Ptr a)base-compat Foreign.Marshal.Array.Compat Like mallocArray, but allocated memory is filled with bytes of value zero.
callocArray0 :: Storable a => Int -> IO (Ptr a)base-compat Foreign.Marshal.Array.Compat Like callocArray0, but allocated memory is filled with bytes of value zero.
equalLength :: [a] -> [b] -> Boolutility-ht Data.List.Match Check whether two lists with different element types have equal length. It holds
\(Shape xs) (List ys) -> equalLength xs ys == (length xs == length ys)
but equalLength is more efficient.lessOrEqualLength :: [a] -> [b] -> Boolutility-ht Data.List.Match lessOrEqualLength x y is almost the same as compareLength x y <= EQ, but
>>> lessOrEqualLength "" undefined True
whereas compareLength [] undefined <= EQ = undefined.type
BufferAllocStrategy = (IO Buffer, Int -> Buffer -> IO IO Buffer)conduit-extra Data.Conduit.ByteString.Builder A buffer allocation strategy (buf0, nextBuf) specifies the initial buffer to use and how to compute a new buffer nextBuf minSize buf with at least size minSize from a filled buffer buf. The double nesting of the IO monad helps to ensure that the reference to the filled buffer buf is lost as soon as possible, but the new buffer doesn't have to be allocated too early.