Closed eazar001 closed 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
.
Ahhhh, so it is my mistake. My apologies ....
and good to know as well [ ;
No apology necessary, glad to help. :)
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.