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.

  1. package random-bytestring

    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.

  2. data ShortByteString

    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.

  3. staticByteStringExp :: Quote m => ByteString -> m Exp

    store Data.Store.Internal

    No documentation available.

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

  5. package streaming-bytestring

    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.

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

  7. toStreamingByteStringWith :: forall (m :: Type -> Type) . MonadIO m => AllocationStrategy -> Builder -> ByteStream m ()

    streaming-bytestring Streaming.ByteString

    Take a builder and convert it to a genuine streaming bytestring, using a specific allocation strategy.

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

  9. toStreamingByteStringWith :: forall (m :: Type -> Type) . MonadIO m => AllocationStrategy -> Builder -> ByteStream m ()

    streaming-bytestring Streaming.ByteString.Char8

    Take a builder and convert it to a genuine streaming bytestring, using a specific allocation strategy.

  10. bracketByteString :: forall (m :: Type -> Type) a b . MonadResource m => IO a -> (a -> IO ()) -> (a -> ByteStream m b) -> ByteStream m b

    streaming-bytestring Streaming.ByteString.Internal

    Like bracket, but specialized for ByteString.

Page 62 of many | Previous | Next