Data.Autolib.Transport.JSON
Contents
Description
JSON backend
This module provides Transport and Atom instances for JSON.
Transport
Atom
Methods
fromAtom :: JSValue -> Error ByteString Source #
toAtom :: ByteString -> JSValue Source #
fromAtom :: JSValue -> Error Text Source #
toAtom :: Text -> JSValue Source #
fromAtom :: JSValue -> Error Integer Source #
toAtom :: Integer -> JSValue Source #
fromAtom :: JSValue -> Error String Source #
toAtom :: String -> JSValue Source #
fromAtom :: JSValue -> Error Bool Source #
toAtom :: Bool -> JSValue Source #
fromAtom :: JSValue -> Error Double Source #
toAtom :: Double -> JSValue Source #
encode :: Trans JSValue -> JSValue Source #
decode :: JSValue -> Error (Trans JSValue) Source #