Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Minimal JSON / RFC 7159 support
The API is heavily inspired by aeson
's API but puts emphasis on
simplicity rather than performance. The ToJSON
instances are
intended to have an encoding compatible with aeson
's encoding.
Documentation
A JSON value represented as a Haskell value.
(.=) :: ToJSON v => String -> v -> Pair infixr 8 Source #
A key-value pair for encoding a JSON object.
A type that can be converted to JSON.
Instances
ToJSON Int16 Source # | |
ToJSON Int32 Source # | |
ToJSON Int64 Source # | Possibly lossy due to conversion to |
ToJSON Int8 Source # | |
ToJSON Word16 Source # | |
ToJSON Word32 Source # | |
ToJSON Word64 Source # | Possibly lossy due to conversion to |
ToJSON Word8 Source # | |
ToJSON Value Source # | |
ToJSON Integer Source # | Possibly lossy due to conversion to |
ToJSON () Source # | |
Defined in Distribution.Client.Utils.Json | |
ToJSON Bool Source # | |
ToJSON Double Source # | |
ToJSON Float Source # | |
ToJSON Int Source # | |
ToJSON Word Source # | |
ToJSON a => ToJSON (Maybe a) Source # | |
ToJSON a => ToJSON [a] Source # | |
Defined in Distribution.Client.Utils.Json | |
(ToJSON a, ToJSON b) => ToJSON (a, b) Source # | |
Defined in Distribution.Client.Utils.Json | |
(ToJSON a, ToJSON b, ToJSON c) => ToJSON (a, b, c) Source # | |
Defined in Distribution.Client.Utils.Json | |
(ToJSON a, ToJSON b, ToJSON c, ToJSON d) => ToJSON (a, b, c, d) Source # | |
Defined in Distribution.Client.Utils.Json |