Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- class BS a where
- toBS :: a -> ByteString
- fromBS :: ByteString -> a
Documentation
Utility class for conversion to and from Strict ByteString
toBS :: a -> ByteString Source #
fromBS :: ByteString -> a Source #
Instances
BS Char Source # | |
Defined in Database.Redis.ByteStringClass toBS :: Char -> ByteString Source # fromBS :: ByteString -> Char Source # | |
BS Double Source # | |
Defined in Database.Redis.ByteStringClass toBS :: Double -> ByteString Source # fromBS :: ByteString -> Double Source # | |
BS Int Source # | |
Defined in Database.Redis.ByteStringClass toBS :: Int -> ByteString Source # fromBS :: ByteString -> Int Source # | |
BS () Source # | |
Defined in Database.Redis.ByteStringClass toBS :: () -> ByteString Source # fromBS :: ByteString -> () Source # | |
BS String Source # | |
Defined in Database.Redis.ByteStringClass toBS :: String -> ByteString Source # fromBS :: ByteString -> String Source # | |
BS ByteString Source # | |
Defined in Database.Redis.ByteStringClass toBS :: ByteString -> ByteString0 Source # fromBS :: ByteString0 -> ByteString Source # | |
BS ByteString Source # | |
Defined in Database.Redis.ByteStringClass toBS :: ByteString -> ByteString Source # fromBS :: ByteString -> ByteString Source # |