Skip to content

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…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Network
LICENSE
README.md
Setup.hs
Test.hs
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.