rest-types-1.11.1: Silk Rest Framework Types

Safe HaskellNone

Rest.Types.Error

Synopsis

Documentation

newtype DomainReason a Source

Constructors

DomainReason 

Fields

reason :: a
 

Instances

Functor DomainReason 
Foldable DomainReason 
Traversable DomainReason 
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 
Functor (Status a) 
Foldable (Status a) 
Traversable (Status a) 
(Eq a, Eq b) => Eq (Status a b) 
(Show a, Show b) => Show (Status a b) 
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) 

fromEither :: Either a b -> Status a bSource

toEither :: Status a b -> Either a bSource

data SomeReason whereSource

Constructors

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

class ToResponseCode a whereSource

The response code that should be given for a type. This is currently only used for errors.

Methods

toResponseCode :: a -> IntSource