Safe Haskell | None |
---|
- data DataError
- = ParseError String
- | PrintError String
- | MissingField String
- | UnsupportedFormat String
- newtype DomainReason a = DomainReason {
- reason :: a
- data Status a b
- fromEither :: Either a b -> Status a b
- toEither :: Status a b -> Either a b
- type Reason_ = Reason ()
- data Reason a
- data SomeReason where
- SomeReason :: (XmlPickler e, JSONSchema e, ToJSON e) => Reason e -> SomeReason
- class ToResponseCode a where
- toResponseCode :: a -> Int
Documentation
ParseError String | |
PrintError String | |
MissingField String | |
UnsupportedFormat String |
newtype DomainReason a Source
DomainReason | |
|
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) |
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
Functor Reason | |
Typeable1 Reason | |
Foldable Reason | |
Traversable Reason | |
Eq a => Eq (Reason a) | |
Show a => Show (Reason a) | |
Generic (Reason a) | |
ToJSON e => ToJSON (Reason e) | |
FromJSON e => FromJSON (Reason e) | |
XmlPickler e => XmlPickler (Reason e) | |
Error (Reason e) | |
Regular (Reason a0) | |
JSONSchema e => JSONSchema (Reason e) | |
ToResponseCode a => ToResponseCode (Reason a) |
data SomeReason whereSource
SomeReason :: (XmlPickler e, JSONSchema e, ToJSON e) => Reason e -> SomeReason |
Typeable SomeReason | |
ToJSON SomeReason | |
XmlPickler SomeReason | |
Error SomeReason | |
JSONSchema SomeReason |
class ToResponseCode a whereSource
The response code that should be given for a type. This is currently only used for errors.
toResponseCode :: a -> IntSource
ToResponseCode () | |
ToResponseCode a => ToResponseCode (Reason a) |