bytestring-conversion-0.1: Type-classes to convert values to and from ByteString.

Safe HaskellNone
LanguageHaskell2010

Data.ByteString.Conversion.To

Synopsis

Documentation

data Builder :: *

Builders denote sequences of bytes. They are Monoids where mempty is the zero-length sequence and mappend is concatenation, which runs in O(1).

toByteString' :: ToByteString a => a -> ByteString Source

Please note that this needs to convert from a lazy ByteString to a strict one which involves copying the whole string.