Hoogle Search
Within LTS Haskell 24.64 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
encodingToLazyByteString :: Encoding' a -> ByteStringaeson Data.Aeson.Encoding.Internal No documentation available.
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]
genShortByteString :: RandomGen g => Int -> g -> (ShortByteString, g)random System.Random genShortByteString n g returns a ShortByteString of length n filled with pseudo-random bytes.
genShortByteStringIO :: MonadIO m => Int -> m Word64 -> m ShortByteStringrandom System.Random.Stateful Efficiently generates a sequence of pseudo-random bytes in a platform independent manner.
genShortByteStringST :: Int -> ST s Word64 -> ST s ShortByteStringrandom System.Random.Stateful Same as genShortByteStringIO, but runs in ST.
uniformByteStringM :: StatefulGen g m => Int -> g -> m ByteStringrandom System.Random.Stateful Generates a pseudo-random ByteString of the specified size.
uniformShortByteString :: StatefulGen g m => Int -> g -> m ShortByteStringrandom System.Random.Stateful uniformShortByteString n g generates a ShortByteString of length n filled with pseudo-random bytes.
takeByteString :: Parser ByteStringattoparsec Data.Attoparsec.ByteString Consume all remaining input and return it as a single string.
takeLazyByteString :: Parser ByteStringattoparsec Data.Attoparsec.ByteString Consume all remaining input and return it as a single string.
takeByteString :: Parser ByteStringattoparsec Data.Attoparsec.ByteString.Char8 Consume all remaining input and return it as a single string.