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. ShortByteString :: ByteArray -> ShortByteString

    bytestring Data.ByteString.Short.Internal

    No documentation available.

  2. unShortByteString :: ShortByteString -> ByteArray

    bytestring Data.ByteString.Short.Internal

    No documentation available.

  3. unsafeFromByteString :: ByteString -> StrictTextBuilder

    text Data.Text.Internal.StrictBuilder

    Copy a ByteString. Unsafe: This may not be valid UTF-8 text.

  4. isValidUtf8ByteString :: ByteString -> Bool

    text Data.Text.Internal.Validate

    Is the ByteString a valid UTF-8 byte sequence?

  5. isValidUtf8ByteStringHaskell :: ByteString -> Bool

    text Data.Text.Internal.Validate.Native

    Native implementation of isValidUtf8ByteString.

  6. encodingToLazyByteString :: Encoding' a -> ByteString

    aeson Data.Aeson.Encoding

    No documentation available.

  7. encodingToLazyByteString :: Encoding' a -> ByteString

    aeson Data.Aeson.Encoding.Internal

    No documentation available.

  8. genByteString :: RandomGen g => Int -> g -> (ByteString, g)

    random System.Random

    Generates a ByteString of the specified size using a pure pseudo-random number generator. See uniformByteStringM for the monadic version.

    Examples

    >>> import System.Random
    
    >>> import Data.ByteString
    
    >>> let pureGen = mkStdGen 137
    
    >>> unpack . fst . genByteString 10 $ pureGen
    [51,123,251,37,49,167,90,109,1,4]
    

  9. genShortByteString :: RandomGen g => Int -> g -> (ShortByteString, g)

    random System.Random

    genShortByteString n g returns a ShortByteString of length n filled with pseudo-random bytes.

  10. genShortByteStringIO :: MonadIO m => Int -> m Word64 -> m ShortByteString

    random System.Random.Stateful

    Efficiently generates a sequence of pseudo-random bytes in a platform independent manner.

Page 30 of many | Previous | Next