rest-types-1.9.0.1: Silk Rest Framework Types

Safe HaskellNone

Rest.Types.Error

Documentation

data DomainReason a Source

Constructors

DomainReason 

Fields

responseCode :: Int
 
reason :: a
 

Instances

Eq a => Eq (DomainReason a) 
Show a => Show (DomainReason a) 
Generic (DomainReason a) 
ToJSON a => ToJSON (DomainReason a) 
FromJSON a => FromJSON (DomainReason a) 
XmlPickler a => XmlPickler (DomainReason a) 
JSONSchema a => JSONSchema (DomainReason a) 

data Status a b Source

Constructors

Failure a 
Success b 

Instances

Typeable2 Status 
Generic (Status a b) 
(ToJSON a, ToJSON b) => ToJSON (Status a b) 
(FromJSON a, FromJSON b) => FromJSON (Status a b) 
(XmlPickler a, XmlPickler b) => XmlPickler (Status a b) 
Regular (Status a0 b0) 
(JSONSchema a, JSONSchema b) => JSONSchema (Status a b) 

data SomeReason whereSource

Constructors

SomeReason :: (XmlPickler e, JSONSchema e, ToJSON e) => Reason e -> SomeReason