packages feed

mime-mail 0.0.0.1 → 0.0.0.2

raw patch · 2 files changed

+7/−6 lines, 2 filesdep ~blaze-builderPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: blaze-builder

API changes (from Hackage documentation)

- Network.Mail.Mime: randomString :: (RandomGen d) => Int -> d -> (String, d)
+ Network.Mail.Mime: randomString :: RandomGen d => Int -> d -> (String, d)
- Network.Mail.Mime: renderMail :: (RandomGen g) => g -> Mail -> (ByteString, g)
+ Network.Mail.Mime: renderMail :: RandomGen g => g -> Mail -> (ByteString, g)

Files

Network/Mail/Mime.hs view
@@ -19,8 +19,8 @@     ) where  import qualified Data.ByteString.Lazy as L-import Text.Blaze.Builder.Utf8-import Text.Blaze.Builder.Core+import Blaze.ByteString.Builder.Char.Utf8+import Blaze.ByteString.Builder import Data.Monoid import System.Random import Control.Arrow@@ -32,6 +32,7 @@ import Data.List (intersperse) import qualified Data.Text.Lazy as LT import qualified Data.Text.Lazy.Encoding as LT+import Data.ByteString.Char8 ()  -- | Generates a random sequence of alphanumerics of the given length. randomString :: RandomGen d => Int -> d -> (String, d)@@ -102,8 +103,8 @@       $ []     builder =         case encoding of-            None -> writeList writeByteString $ L.toChunks content-            Base64 -> writeList writeByte $ map (toEnum . fromEnum)+            None -> fromWrite16List writeByteString $ L.toChunks content+            Base64 -> fromWrite16List writeWord8 $ map (toEnum . fromEnum)                     $ encode $ L.unpack content  showPairs :: RandomGen g
mime-mail.cabal view
@@ -1,5 +1,5 @@ Name:                mime-mail-Version:             0.0.0.1+Version:             0.0.0.2 Synopsis:            Compose MIME email messages. Description:         This package provides some high-level datatypes for declaring MIME email messages, functions for automatically composing these into bytestrings, and the ability to send bytestrings via the sendmail executable. You can also use any other library you wish to send via different methods, eg directly to SMTP. Homepage:            http://github.com/snoyberg/mime-mail@@ -20,7 +20,7 @@                  , dataenc             >= 0.13.0.4   && < 0.14                  , process             >= 1.0        && < 1.1                  , random              >= 1.0        && < 1.1-                 , blaze-builder       >= 0.1        && < 0.2+                 , blaze-builder       >= 0.2        && < 0.3                  , bytestring          >= 0.9.1      && < 0.10                  , text                >= 0.7        && < 0.11