Hoogle Search
Within LTS Haskell 24.43 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
Efficient generation of random bytestrings This package is deprecated. Please, use genByteString from the random package (version >=1.2) instead. Efficient generation of random bytestrings. The implementation populates uninitialized memory with uniformily distributed random 64 bit words (and 8 bit words for remaining bytes at the end of the bytestring). Random words are generated using the PRNG from the mwc-random package or the pcg-random package. It is also possible to use a custom PRNG by providing an instance for the RandomWords type class and using the function generate from the module Data.ByteString.Random.Internal. The generated byte strings are suitable for statistical applications. They are not suitable for cryptographic applications.
-
rebase Rebase.Prelude A compact representation of a Word8 vector. It has a lower memory overhead than a ByteString and does not contribute to heap fragmentation. It can be converted to or from a ByteString (at the cost of copying the string data). It supports very few other operations.
staticByteStringExp :: Quote m => ByteString -> m Expstore Data.Store.Internal No documentation available.
copyByteString :: MonadIO m => ByteBuffer -> ByteString -> m ()store System.IO.ByteBuffer Copy the contents of a ByteString to a ByteBuffer. If necessary, the ByteBuffer is enlarged and/or already consumed bytes are dropped.
-
Fast, effectful byte streams. This library enables fast and safe streaming of byte data, in either Word8 or Char form. It is a core addition to the streaming ecosystem and avoids the usual pitfalls of combinbing lazy ByteStrings with lazy IO. We follow the philosophy shared by streaming that "the best API is the one you already know". Thus this library mirrors the API of the bytestring library as closely as possible. See the module documentation and the README for more information.
toStreamingByteString :: forall (m :: Type -> Type) . MonadIO m => Builder -> ByteStream m ()streaming-bytestring Streaming.ByteString Take a builder constructed otherwise and convert it to a genuine streaming bytestring.
>>> Q.putStrLn $ Q.toStreamingByteString $ stringUtf8 "哈斯克尔" <> stringUtf8 " " <> integerDec 98 哈斯克尔 98
This benchmark shows its performance is indistinguishable from toLazyByteString-
streaming-bytestring Streaming.ByteString Take a builder and convert it to a genuine streaming bytestring, using a specific allocation strategy.
toStreamingByteString :: forall (m :: Type -> Type) . MonadIO m => Builder -> ByteStream m ()streaming-bytestring Streaming.ByteString.Char8 Take a builder constructed otherwise and convert it to a genuine streaming bytestring.
>>> Q.putStrLn $ Q.toStreamingByteString $ stringUtf8 "哈斯克尔" <> stringUtf8 " " <> integerDec 98 哈斯克尔 98
This benchmark shows its performance is indistinguishable from toLazyByteString-
streaming-bytestring Streaming.ByteString.Char8 Take a builder and convert it to a genuine streaming bytestring, using a specific allocation strategy.
-
streaming-bytestring Streaming.ByteString.Internal Like bracket, but specialized for ByteString.