| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Web.Hyperbole.Server.Message
Documentation
Constructors
| Message | |
Fields
| |
newtype MessageBody Source #
Constructors
| MessageBody | |
Fields
| |
Instances
| Show MessageBody Source # | |
Defined in Web.Hyperbole.Server.Message Methods showsPrec :: Int -> MessageBody -> ShowS # show :: MessageBody -> String # showList :: [MessageBody] -> ShowS # | |
data MessageError Source #
Constructors
| InvalidMessage String Text | |
| InvalidCookie ByteString String | |
| MissingMeta String |
Instances
| Exception MessageError Source # | |
Defined in Web.Hyperbole.Server.Message Methods toException :: MessageError -> SomeException # fromException :: SomeException -> Maybe MessageError # displayException :: MessageError -> String # backtraceDesired :: MessageError -> Bool # | |
| Show MessageError Source # | |
Defined in Web.Hyperbole.Server.Message Methods showsPrec :: Int -> MessageError -> ShowS # show :: MessageError -> String # showList :: [MessageError] -> ShowS # | |
renderMetadata :: Metadata -> Text Source #
Instances
| Monoid Metadata Source # | |||||
| Semigroup Metadata Source # | |||||
| Generic Metadata Source # | |||||
Defined in Web.Hyperbole.Server.Message Associated Types
| |||||
| Show Metadata Source # | |||||
| ViewId Metadata Source # | |||||
| type Rep Metadata Source # | |||||
Defined in Web.Hyperbole.Server.Message | |||||
| type ViewState Metadata Source # | |||||
Defined in Web.Hyperbole.Server.Message | |||||
requestMetadata :: Request -> Metadata Source #
metaRemotes :: [Remote] -> Metadata Source #
metaRemote :: Remote -> Metadata Source #
data ContentType Source #
Constructors
| ContentHtml | |
| ContentText |
data RenderedMessage Source #
Constructors
| MessageHtml ByteString | |
| MessageText Text | |
| MessageNone |