json-api-lib-0.1.1.1: Utilities for generating JSON-API payloads

Safe HaskellNone
LanguageHaskell2010

Network.JSONApi.Error

Description

Module representing a JSON-API error object.

Error objects are used for providing application-specific detail to unsuccessful API responses.

Specification: http://jsonapi.org/format/#error-objects

Synopsis

Documentation

data Error a Source #

Type for providing application-specific detail to unsuccessful API responses.

Specification: http://jsonapi.org/format/#error-objects

Constructors

Error 
Instances
Eq (Error a) Source # 
Instance details

Defined in Network.JSONApi.Error

Methods

(==) :: Error a -> Error a -> Bool #

(/=) :: Error a -> Error a -> Bool #

Show (Error a) Source # 
Instance details

Defined in Network.JSONApi.Error

Methods

showsPrec :: Int -> Error a -> ShowS #

show :: Error a -> String #

showList :: [Error a] -> ShowS #

Generic (Error a) Source # 
Instance details

Defined in Network.JSONApi.Error

Associated Types

type Rep (Error a) :: Type -> Type #

Methods

from :: Error a -> Rep (Error a) x #

to :: Rep (Error a) x -> Error a #

ToJSON a => ToJSON (Error a) Source # 
Instance details

Defined in Network.JSONApi.Error

FromJSON a => FromJSON (Error a) Source # 
Instance details

Defined in Network.JSONApi.Error

Default (Error a) Source # 
Instance details

Defined in Network.JSONApi.Error

Methods

def :: Error a #

type Rep (Error a) Source # 
Instance details

Defined in Network.JSONApi.Error