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