Skip to content

Commit

Permalink
Fix IsString instance
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Aug 16, 2017
1 parent db1e58b commit 5d47f26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions mime-mail/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.14

* Add `IsString` instance for `Address`

## 0.4.13.1

* Fix [#50](https://github.com/snoyberg/mime-mail/issues/50): space between name and address [#51](https://github.com/snoyberg/mime-mail/pull/51)
Expand Down
2 changes: 1 addition & 1 deletion mime-mail/Network/Mail/Mime.hs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ data Address = Address
deriving (Eq, Show)

instance IsString Address where
fromString str = Address Nothing (fromString str)
fromString = Address Nothing . Data.String.fromString

-- | How to encode a single part. You should use 'Base64' for binary data.
data Encoding = None | Base64 | QuotedPrintableText | QuotedPrintableBinary
Expand Down
2 changes: 1 addition & 1 deletion mime-mail/mime-mail.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: mime-mail
Version: 0.4.13.1
Version: 0.4.14
Synopsis: Compose MIME email messages.
description: Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/mime-mail>.
Homepage: http://github.com/snoyberg/mime-mail
Expand Down

0 comments on commit 5d47f26

Please sign in to comment.