Yesod.Internal
Contents
Description
Normal users should never need access to these.
- data ErrorResponse
- data Header
- langKey :: String
- data Location url
- newtype UniqueList x = UniqueList ([x] -> [x])
- newtype Script url = Script {}
- newtype Stylesheet url = Stylesheet {
- unStylesheet :: Location url
- newtype Title = Title {}
- newtype Head url = Head (Hamlet url)
- newtype Body url = Body (Hamlet url)
- locationToHamlet :: Location url -> Hamlet url
- runUniqueList :: Eq x => UniqueList x -> [x]
- toUnique :: x -> UniqueList x
Error responses
data ErrorResponse Source
Responses to indicate some form of an error occurred. These are different
from SpecialResponse in that they allow for custom error pages.
Constructors
| NotFound | |
| InternalError String | |
| InvalidArgs [String] | |
| PermissionDenied String | |
| BadMethod String |
Instances
| Eq ErrorResponse | |
| Show ErrorResponse | |
| Failure ErrorResponse (GHandler sub master) |
Header
Headers to be added to a Result.
Cookie names
Widgets
newtype Stylesheet url Source
Constructors
| Stylesheet | |
Fields
| |
Instances
| Eq url => Eq (Stylesheet url) | |
| Show url => Show (Stylesheet url) |
locationToHamlet :: Location url -> Hamlet urlSource
runUniqueList :: Eq x => UniqueList x -> [x]Source
toUnique :: x -> UniqueList xSource