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.
gcdetails_allocated_bytes :: GCDetails -> Word64base GHC.Stats Number of bytes allocated since the previous GC
-
bytestring Data.ByteString.Builder.Extra The recommended chunk size. Currently set to 4k, less the memory management overhead
-
bytestring Data.ByteString.Builder.Internal The recommended chunk size. Currently set to 4k, less the memory management overhead
mallocByteString :: Int -> IO (ForeignPtr a)bytestring Data.ByteString.Internal Wrapper of mallocForeignPtrBytes with faster implementation for GHC
-
bytestring Data.ByteString.Lazy.Internal The recommended chunk size. Currently set to 4k, less the memory management overhead
unsafePackMallocCString :: CString -> IO ByteStringbytestring 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.
unsafePackMallocCStringLen :: CStringLen -> IO ByteStringbytestring 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.
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
>>> 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.smaller :: Size -> Size -> Sizetext Data.Text.Internal.Fusion.Size Minimum of two size hints.
-
text Data.Text.Internal.Lazy Currently set to 128 bytes, less the memory management overhead.