rest-types-1.14.0.1: Silk Rest Framework Types

Safe HaskellNone
LanguageHaskell98

Rest.Types.Error

Synopsis

Documentation

data Status a b Source

Constructors

Failure a 
Success b 

Instances

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) 
(JSONSchema a, JSONSchema b) => JSONSchema (Status a b) 
Typeable (* -> * -> *) Status 
type Rep (Status a b) 

class ToResponseCode a where Source

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

Methods

toResponseCode :: a -> Int Source