| Portability | unportable |
|---|---|
| Stability | unstable |
| Maintainer | pbrisbin@gmail.com |
Yesod.Goodies.Gravatar
Contents
Description
- type Email = Text
- gravatarImg :: Email -> GravatarOptions -> String
- data GravatarOptions = GravatarOptions {}
- class GravatarParam a where
- newtype Size = Size Int
- data Default
- newtype ForceDefault = ForceDefault Bool
- data Rating
- defaultOptions :: GravatarOptions
Base request
This is because yesod is moving towards using that type in
as many places as possible. It's what you should be storing in your
database and what Yesod.Form already gives you out of an input.
Text
gravatarImg :: Email -> GravatarOptions -> StringSource
Return the avatar for the given email using the provided options
Options
data GravatarOptions Source
Constructors
| GravatarOptions | |
class GravatarParam a whereSource
Image to show when an avatar is not available
Constructors
| Custom String | supply your own url |
| NotFound | do not load an image return a 404 |
| MM | mystery man |
| Identicon | geometric pattern based on the hash |
| MonsterId | a generated monster |
| Wavatar | generated faces |
| Retro | gernated, 8-bit arcade style pixelated face |
Instances
Limit the returned images by rating
Instances