[Haskell-beginners] SMTPClient + hsemail-1.6 = errors
Robert Wills
wrwills at gmail.com
Thu Mar 25 21:02:15 EDT 2010
HaskellNet contains an smtp client as well.
http://hackage.haskell.org/package/HaskellNet
It worked last time I checked.
main = do
con <- connectSMTP smtpServer
let msg = ([("From", "HaskellNet <" ++ sendFrom ++
">"),("Subject","Test")], BS.pack "\r\nhello from haskellnet")
sendMail sendFrom sendTo (BS.pack $ show $ showMessage "utf-8" msg) con
closeSMTP con
Regards,
Rob
On Thu, Mar 25, 2010 at 11:34 PM, Sergey Mironov <ierton at gmail.com> wrote:
> Hi.
> I was trying to install SMTPClient-1.0.1
>
> Compiler reported me:
>
> ierton at vault SMTPClient-1.0.1 % cabal build
> Preprocessing library SMTPClient-1.0.1...
> Building SMTPClient-1.0.1...
> [1 of 2] Compiling Network.SMTP.ClientSession (
> Network/SMTP/ClientSession.hs, dist/build/Network/SMTP/ClientSession.o
> )
>
> Network/SMTP/ClientSession.hs:242:16:
> Not in scope: data constructor `Message'
>
> Network/SMTP/ClientSession.hs:406:15:
> Not in scope: data constructor `Message'
>
> I've made some digging: Seems that newest version of 'hsemail' (1.6)
> breaks backward compatibility (SMTPClient depends on it)
>
> My questions:
> 1) Where should i send bugreport to?
> There are no emails on http://hackage.haskell.org/package/SMTPClient
> so i don't know how to contact maintainers.
>
> 2) How to fallback hsemail?
> i tried:
>
> ierton at vault ~ % cabal install hsemail-1.3 # good, i suppose
> ierton at vault ~ % ghc-pkg hide hsemail-1.6 # Bad one
> ierton at vault ~ % caball install -v SMTPClient
> ...
> ... bla-bla ...
> ...
> selecting hsemail-1.6 (installed or hackage) and discarding hsemail-1.0, 1.1,
> 1.2, 1.3, 1.4 and 1.5
> ...
>
> Looks like hiding a package is not a case for me.
>
> ps
>
> I am using ghc-6.12
>
> --
> Thanks,
> Sergey
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
More information about the Beginners
mailing list