rest-types-1.10.1: Silk Rest Framework Types

Safe HaskellNone
LanguageHaskell98

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) 
JSONSchema a => JSONSchema (DomainReason a) 
XmlPickler a => XmlPickler (DomainReason a) 
type Rep (DomainReason a) 

data Status a b Source

Constructors

Failure a 
Success b 

Instances

Generic (Status a b) 
(ToJSON a, ToJSON b) => ToJSON (Status a b) 
(FromJSON a, FromJSON b) => FromJSON (Status a b) 
(JSONSchema a, JSONSchema b) => JSONSchema (Status a b) 
Regular (Status a b) 
(XmlPickler a, XmlPickler b) => XmlPickler (Status a b) 
Typeable (* -> * -> *) Status 
type Rep (Status a b) 
type PF (Status a b) 

data Reason a Source

Instances

Eq a => Eq (Reason a) 
Show a => Show (Reason a) 
Generic (Reason a) 
Error (Reason e) 
ToJSON e => ToJSON (Reason e) 
FromJSON e => FromJSON (Reason e) 
JSONSchema e => JSONSchema (Reason e) 
Regular (Reason a) 
XmlPickler e => XmlPickler (Reason e) 
Typeable (* -> *) Reason 
type Rep (Reason a) 
type PF (Reason e) 

data SomeReason where Source

Constructors

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

Instances

Error SomeReason 
ToJSON SomeReason 
JSONSchema SomeReason 
XmlPickler SomeReason 
Typeable * SomeReason