Module

Bucketchain.SimpleAPI.JSON

Package
purescript-bucketchain-simple-api
Repository
Bucketchain/purescript-bucketchain-simple-api

#JSON Source

data JSON a

The type for JSON response.

Instances

#FailureMessages Source

#success Source

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

Create a success response.

#failure Source

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

Create a failure response.