yesod-goodies-0.0.4.1: A collection of various small helpers useful in any yesod application.

Portabilityunportable
Stabilityunstable
Maintainerpbrisbin@gmail.com

Yesod.Goodies.Gravatar

Contents

Description

Synopsis

Base request

type Email = TextSource

This is Text 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.

gravatarImg :: Email -> GravatarOptions -> StringSource

Return the avatar for the given email using the provided options

Options

newtype Size Source

Size in pixels

Constructors

Size Int 

Instances

data Default Source

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

newtype ForceDefault Source

Always show the default image

Constructors

ForceDefault Bool 

data Rating Source

Limit the returned images by rating

Constructors

G 
PG 
R 
X