Database.Redis.ByteStringClass

redis-0.13: A driver for Redis key-value database

Safe Haskell | Safe-Infered

Database.Redis.ByteStringClass

Synopsis

- class BS a where
  - toBS :: a -> ByteString
  - fromBS :: ByteString -> a

# Documentation

class BS a where

Utility class for conversion to and from Strict ByteString

Methods

toBS :: a -> ByteString

fromBS :: ByteString -> a

Instances

BS Char |
BS Double |
BS Int |
BS String |
BS () |
BS ByteString |
BS ByteString |