Skip to content

Commit

Permalink
cryptohash 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Sep 1, 2013
1 parent 3cfafa7 commit 68213a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mime-mail-ses/Network/Mail/Mime/SES.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleContexts #-}
module Network.Mail.Mime.SES
Expand All @@ -15,7 +16,11 @@ import System.Locale (defaultTimeLocale)
import Data.Time (getCurrentTime)
import qualified Data.ByteString.Char8 as S8
import Crypto.HMAC
#if MIN_VERSION_cryptohash(0, 10, 0)
import Crypto.Hash.CryptoAPI (SHA256)
#else
import Crypto.Hash.SHA256 (SHA256)
#endif
import Data.ByteString.Base64 (encode)
import qualified Data.Serialize as S
import Control.Monad.Trans.Resource (MonadResource)
Expand Down
3 changes: 2 additions & 1 deletion mime-mail-ses/mime-mail-ses.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: mime-mail-ses
Version: 0.2.1.2
Version: 0.2.1.3
Synopsis: Send mime-mail messages via Amazon SES
Homepage: http://github.com/snoyberg/mime-mail
License: MIT
Expand All @@ -26,4 +26,5 @@ Library
, transformers >= 0.2
, http-types >= 0.6.8
, monad-control >= 0.3
, cryptohash-cryptoapi
ghc-options: -Wall

0 comments on commit 68213a4

Please sign in to comment.