Safe Haskell | None |
---|---|
Language | GHC2021 |
Freckle.App.Json.Empty
Description
Aeson represents
Documentation
A unit value encoded as an empty JSON object
Useful as the response body of a POST request when the server doesn't need to return anything.
(One would expect to be able to use () for this, but Aeson encodes unit as an empty list, not as an object.)
Constructors
Empty |
Instances
Arbitrary Empty Source # | |
FromJSON Empty Source # | |
Defined in Freckle.App.Json.Empty | |
ToJSON Empty Source # | |
HasCodec Empty Source # | |
Defined in Freckle.App.Json.Empty | |
HasObjectCodec Empty Source # | |
Defined in Freckle.App.Json.Empty Methods | |
Monoid Empty Source # | |
Semigroup Empty Source # | |
ToSchema Empty Source # | |
Defined in Freckle.App.Json.Empty Methods declareNamedSchema :: Proxy Empty -> Declare (Definitions Schema) NamedSchema # |