Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SerializableBlob
- fromText :: Text -> SerializableBlob
- fromBS :: ByteString -> SerializableBlob
- fromLBS :: ByteString -> SerializableBlob
- toBS :: SerializableBlob -> ByteString
- toLBS :: SerializableBlob -> ByteString
Documentation
data SerializableBlob Source #
A JSON-serializable type for either text or raw binary data, encoded with base-64.
Instances
Show SerializableBlob Source # | |
Defined in Data.SerializableBlob showsPrec :: Int -> SerializableBlob -> ShowS # show :: SerializableBlob -> String # showList :: [SerializableBlob] -> ShowS # | |
IsString SerializableBlob Source # | |
Defined in Data.SerializableBlob fromString :: String -> SerializableBlob # | |
ToJSON SerializableBlob Source # | |
Defined in Data.SerializableBlob toJSON :: SerializableBlob -> Value toEncoding :: SerializableBlob -> Encoding toJSONList :: [SerializableBlob] -> Value toEncodingList :: [SerializableBlob] -> Encoding |
fromText :: Text -> SerializableBlob Source #
fromBS :: ByteString -> SerializableBlob Source #
fromLBS :: ByteString -> SerializableBlob Source #
toBS :: SerializableBlob -> ByteString Source #
toLBS :: SerializableBlob -> ByteString Source #