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.

  1. 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.

  2. 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.

  3. 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.

  4. calloc :: Storable a => IO (Ptr a)

    base-compat Foreign.Marshal.Alloc.Compat

    Like malloc but memory is filled with bytes of value zero.

  5. callocBytes :: Int -> IO (Ptr a)

    base-compat Foreign.Marshal.Alloc.Compat

    Like mallocBytes, but memory is filled with bytes of value zero.

  6. 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.

  7. 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.

  8. equalLength :: [a] -> [b] -> Bool

    utility-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.

  9. lessOrEqualLength :: [a] -> [b] -> Bool

    utility-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.

  10. 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.

Page 226 of many | Previous | Next