Module

Bucketchain.SimpleAPI.JSON

#JSON

data JSON a

The type for JSON response.

Instances

#FailureMessages

#success

success :: forall a. WriteForeign a => StatusCode -> a -> JSON a

Create a success response.

#failure

failure :: forall a. WriteForeign a => StatusCode -> FailureMessages -> JSON a

Create a failure response.

Modules