Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Compute gravatar urls for email addresses

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Network
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Setup.hs
Octocat-spinner-32 gravatar.cabal
README.md

Gravatar

{-# LANGUAGE OverloadedStrings #-}
import Network.Gravatar

Lookup gravatar image urls based on an email address.

url :: String
url = gravatar def "pbrisbin@gmail.com"

-- ==> https://secure.gravatar.com/avatar/2be502055b6c21ff470730beead2a998

This is a clean-room implementation of this existing package (I had no idea it existed when I wrote this).

There's only a few small differences:

  1. I have only one function and a required "options" argument which supports everything the Gravatar API offers.

  2. My gravatar operates on a Text value

The older package hasn't been updated since 2008 and I'm unable to reach Don on the matter. Hopefully it's ok that I take over the module name.

Something went wrong with that request. Please try again.