Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class ToByteString a where
- toByteString :: ToByteString a => a -> ByteString
- toByteString' :: ToByteString a => a -> ByteString
- runBuilder :: Builder -> ByteString
Documentation
class ToByteString a where Source #
Instances
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 #