jhickner / smtp-mail

Making it easy to send SMTP email from Haskell
BSD 3-Clause "New" or "Revised" License
75 stars 32 forks source link

Erroneous readme file? #11

Closed eazar001 closed 10 years ago

eazar001 commented 10 years ago

Perhaps I am missing something, but your readme.md states that you can simply:

from = Address Nothing "email@domain.com"

However, I believe that you can't do that without

import Data.Text from = Address Nothing $ pack "email@domain.com"

Unless I am missing something, but thought I would point that out.

jhickner commented 10 years ago

The {-# LANGUAGE OverloadedStrings #-} directive at the top of the example lets the type inferencer guess which type your string literals should be from the context rather than always assuming String.

eazar001 commented 10 years ago

Ahhhh, so it is my mistake. My apologies ....

eazar001 commented 10 years ago

and good to know as well [ ;

jhickner commented 10 years ago

No apology necessary, glad to help. :)