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.
lazyByteString :: Serializer s => ByteString -> sdata-serializer Data.Serializer Serialize a lazy ByteString. Must be a monoid homomorphism.
shortByteString :: Serializer s => ShortByteString -> sdata-serializer Data.Serializer Serialize a ShortByteString. Must be a monoid homomorphism.
toByteString :: Serializable α => α -> ByteStringdata-serializer Data.Serializer A shorthand for buildByteString . put.
toLazyByteString :: Serializable α => α -> ByteStringdata-serializer Data.Serializer A shorthand for buildLazyByteString . put.
inlinesToByteString :: Inlines -> ByteStringdjot Djot.AST No documentation available.
inlinesToByteString :: Inlines -> ByteStringdjot Djot.Html No documentation available.
withByteString :: Parser s a -> Parser s (a, ByteString)djot Djot.Parse Returns result of parse together with the bytestring consumed.
toLazyByteString :: Builder -> ByteStringfast-builder Data.ByteString.FastBuilder Turn a Builder into a lazy ByteString. Performance hint: when the resulting ByteString does not fit in one chunk, this function forks a thread. Due to this, the performance degrades sharply if you use this function from a bound thread. Note in particular that the main thread is a bound thread when you use ghc -threaded. To avoid this problem, do one of these:
- Make sure the resulting ByteString is consumed in an unbound thread. Consider using runInUnboundThread for this.
- Use other function to run the Builder instead. Functions that don't return a lazy ByteString do not have this issue.
- Link your program without -threaded.
toLazyByteStringWith :: Int -> Int -> Builder -> ByteStringfast-builder Data.ByteString.FastBuilder Like toLazyByteString, but allows the user to specify the initial and the subsequent desired buffer sizes.
toStrictByteString :: Builder -> ByteStringfast-builder Data.ByteString.FastBuilder Turn a Builder into a strict ByteString.