Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- class AsByteString a where
- toByteString :: a -> ByteString
- fromByteString :: ByteString -> a
Documentation
class AsByteString a where Source #
Convert to/from strict ByteStrings
toByteString :: a -> ByteString Source #
fromByteString :: ByteString -> a Source #
Instances
AsByteString ByteString Source # | |
Defined in Data.ByteString.Convert | |
AsByteString ByteString Source # | |
Defined in Data.ByteString.Convert toByteString :: ByteString -> ByteString Source # | |
AsByteString [Word8] Source # | |
Defined in Data.ByteString.Convert toByteString :: [Word8] -> ByteString Source # fromByteString :: ByteString -> [Word8] Source # |