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