Hoogle Search
Within LTS Haskell 24.63 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fromByteString :: ByteString -> Bytesbyteslice Data.Bytes O(n) Copy a ByteString to a byte sequence.
fromLazyByteString :: ByteString -> Bytesbyteslice Data.Bytes O(n) Copy a lazy bytestring to a byte sequence.
fromShortByteString :: ShortByteString -> Bytesbyteslice Data.Bytes O(1) Create Bytes from a ShortByteString.
pinnedToByteString :: Bytes -> ByteStringbyteslice Data.Bytes Convert a pinned Bytes to a ByteString O(1) Precondition: bytes are pinned. Behavior is undefined otherwise.
toByteString :: Bytes -> ByteStringbyteslice Data.Bytes O(n) when unpinned, O(1) when pinned. Create a ByteString from a byte sequence. This only copies the byte sequence if it is not pinned.
toShortByteString :: Bytes -> ShortByteStringbyteslice Data.Bytes Convert the sliced Bytes to an unsliced ShortByteString. This reuses the array backing the sliced Bytes if the slicing metadata implies that all of the bytes are used. Otherwise, it makes a copy.
toShortByteStringClone :: Bytes -> ShortByteStringbyteslice Data.Bytes Variant of toShortByteString that unconditionally makes a copy of the array backing the sliced Bytes even if the original array could be reused. Prefer toShortByteString.
concatByteString :: Chunks -> ByteStringbyteslice Data.Bytes.Chunks Concatenate chunks into a strict bytestring.
toByteString :: EmailAddress -> ByteStringemail-validate Text.Email.Parser Converts an email address back to a ByteString
toByteString :: EmailAddress -> ByteStringemail-validate Text.Email.Validate Converts an email address back to a ByteString