Safe Haskell | None |
---|---|
Language | Haskell98 |
- data DataError
- 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 Void
- data Reason a
- data SomeReason where
- SomeReason :: (XmlPickler e, JSONSchema e, ToJSON e) => Reason e -> SomeReason
- class ToResponseCode a where
Documentation
newtype DomainReason a Source #
DomainReason | |
|
Functor DomainReason Source # | |
Foldable DomainReason Source # | |
Traversable DomainReason Source # | |
Eq a => Eq (DomainReason a) Source # | |
Show a => Show (DomainReason a) Source # | |
Generic (DomainReason a) Source # | |
ToJSON a => ToJSON (DomainReason a) Source # | |
FromJSON a => FromJSON (DomainReason a) Source # | |
XmlPickler a => XmlPickler (DomainReason a) Source # | |
JSONSchema a => JSONSchema (DomainReason a) Source # | |
type Rep (DomainReason a) Source # | |
Functor (Status a) Source # | |
Foldable (Status a) Source # | |
Traversable (Status a) Source # | |
(Eq a, Eq b) => Eq (Status a b) Source # | |
(Show a, Show b) => Show (Status a b) Source # | |
Generic (Status a b) Source # | |
(ToJSON a, ToJSON b) => ToJSON (Status a b) Source # | |
(FromJSON a, FromJSON b) => FromJSON (Status a b) Source # | |
(XmlPickler a, XmlPickler b) => XmlPickler (Status a b) Source # | |
(JSONSchema a, JSONSchema b) => JSONSchema (Status a b) Source # | |
type Rep (Status a b) Source # | |
fromEither :: Either a b -> Status a b Source #
Monad Reason Source # | |
Functor Reason Source # | |
Applicative Reason Source # | |
Foldable Reason Source # | |
Traversable Reason Source # | |
Eq a => Eq (Reason a) Source # | |
Show a => Show (Reason a) Source # | |
Generic (Reason a) Source # | |
ToJSON e => ToJSON (Reason e) Source # | |
FromJSON e => FromJSON (Reason e) Source # | |
XmlPickler e => XmlPickler (Reason e) Source # | |
JSONSchema e => JSONSchema (Reason e) Source # | |
ToResponseCode a => ToResponseCode (Reason a) Source # | |
type Rep (Reason a) Source # | |
data SomeReason where Source #
SomeReason :: (XmlPickler e, JSONSchema e, ToJSON e) => Reason e -> SomeReason |
class ToResponseCode a where Source #
The response code that should be given for a type. This is currently only used for errors.
toResponseCode :: a -> Int Source #
ToResponseCode Void Source # | |
ToResponseCode a => ToResponseCode (Reason a) Source # | |