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. gcdetails_allocated_bytes :: GCDetails -> Word64

    base GHC.Stats

    Number of bytes allocated since the previous GC

  2. smallChunkSize :: Int

    bytestring Data.ByteString.Builder.Extra

    The recommended chunk size. Currently set to 4k, less the memory management overhead

  3. smallChunkSize :: Int

    bytestring Data.ByteString.Builder.Internal

    The recommended chunk size. Currently set to 4k, less the memory management overhead

  4. mallocByteString :: Int -> IO (ForeignPtr a)

    bytestring Data.ByteString.Internal

    Wrapper of mallocForeignPtrBytes with faster implementation for GHC

  5. smallChunkSize :: Int

    bytestring Data.ByteString.Lazy.Internal

    The recommended chunk size. Currently set to 4k, less the memory management overhead

  6. unsafePackMallocCString :: CString -> IO ByteString

    bytestring Data.ByteString.Unsafe

    O(n) Build a ByteString from a malloced CString. This value will have a free(3) finalizer associated to it. This function is unsafe. If the original CString is later modified, this change will be reflected in the resulting ByteString, breaking referential transparency. This function is also unsafe if you call its finalizer twice, which will result in a double free error, or if you pass it a CString not allocated with malloc.

  7. unsafePackMallocCStringLen :: CStringLen -> IO ByteString

    bytestring Data.ByteString.Unsafe

    O(1) Build a ByteString from a malloced CStringLen. This value will have a free(3) finalizer associated to it. This function is unsafe. If the original CString is later modified, this change will be reflected in the resulting ByteString, breaking referential transparency. This function is also unsafe if you call its finalizer twice, which will result in a double free error, or if you pass it a CString not allocated with malloc.

  8. breakOnAll :: HasCallStack => Text -> Text -> [(Text, Text)]

    text Data.Text

    O(n+m) Find all non-overlapping instances of needle in haystack. Each element of the returned list consists of a pair:

    • The entire string prior to the kth match (i.e. the prefix)
    • The kth match, followed by the remainder of the string
    Examples:
    >>> breakOnAll "::" ""
    []
    
    >>> breakOnAll "/" "a/b/c/"
    [("a","/b/c/"),("a/b","/c/"),("a/b/c","/")]
    
    In (unlikely) bad cases, this function's time complexity degrades towards O(n*m). The needle parameter may not be empty.

  9. smaller :: Size -> Size -> Size

    text Data.Text.Internal.Fusion.Size

    Minimum of two size hints.

  10. smallChunkSize :: Int

    text Data.Text.Internal.Lazy

    Currently set to 128 bytes, less the memory management overhead.

Page 193 of many | Previous | Next