| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Morley.Client.RPC.Aeson
Description
Helpers for the aeson package.
Currently we need this module due to "GHC stage restriction".
Synopsis
- morleyClientAesonOptions :: Options
- newtype ClientJSON a = ClientJSON {
- unClientJSON :: a
Documentation
morleyClientAesonOptions :: Options Source #
We use these Options to produce JSON encoding in the format
that RPC expects. We are not using defaults from morley because
we need a specific format.
newtype ClientJSON a Source #
Constructors
| ClientJSON | |
Fields
| |
Instances
| (Generic a, GFromJSON Zero (Rep a)) => FromJSON (ClientJSON a) Source # | |
Defined in Morley.Client.RPC.Aeson Methods parseJSON :: Value -> Parser (ClientJSON a) # parseJSONList :: Value -> Parser [ClientJSON a] # | |
| (Generic a, GToJSON Zero (Rep a), GToEncoding Zero (Rep a)) => ToJSON (ClientJSON a) Source # | |
Defined in Morley.Client.RPC.Aeson Methods toJSON :: ClientJSON a -> Value # toEncoding :: ClientJSON a -> Encoding # toJSONList :: [ClientJSON a] -> Value # toEncodingList :: [ClientJSON a] -> Encoding # | |