| Safe Haskell | None | 
|---|
Data.ByteString.Conversion.To
- class ToByteString a where
- data Builder
- toByteString :: ToByteString a => a -> ByteString
- toByteString' :: ToByteString a => a -> ByteString
- runBuilder :: Builder -> ByteString
Documentation
class ToByteString a whereSource
Instances
data Builder
toByteString :: ToByteString a => a -> ByteStringSource
toByteString' :: ToByteString a => a -> ByteStringSource
Please note that this needs to convert from a lazy ByteString to
 a strict one which involves copying the whole string.