gravatar-0.8.0: Generate Gravatar image URLs

Safe HaskellNone
LanguageHaskell2010

Network.Gravatar

Contents

Synopsis

Documentation

gravatar :: GravatarOptions -> Text -> String Source

Return the avatar for the given email using the provided options

Options

data GravatarOptions Source

Constructors

GravatarOptions 

Fields

gSize :: Maybe Size

default Nothing

gDefault :: Maybe DefaultImg

default Nothing

gForceDefault :: ForceDefault

default False

gRating :: Maybe Rating

default Nothing

gScheme :: Scheme

default Https

newtype Size Source

Size in pixels

Constructors

Size Int 

data DefaultImg 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

generated, 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 

data Scheme Source

Scheme to use for image URLs

Constructors

Http
http://
Https
https://
None
//

Instances

class Default a where

A class for types with a default value.

Methods

def :: a

The default value for this type.

defaultConfig :: GravatarOptions Source

Available for backwards compatability, using def is advised