Safe Haskell | None |
---|
- class ToByteString a where
- data Builder
- toByteString :: ToByteString a => a -> ByteString
- toByteString' :: ToByteString a => a -> ByteString
- runBuilder :: Builder -> ByteString
Documentation
class ToByteString a whereSource
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.