Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data EmptyResponse = EmptyResponse
Documentation
data EmptyResponse Source #
This is equivalent to ()
, but JSONifies to an empty object instead of an
empty array. Returning an empty object gives us more flexibility, allowing
us to expand the response without breaking compatibility.