Fwd: [Haskell-beginners] SMTPClient + hsemail-1.6 = errors

Thanks, Robert. But my real goal was to compile happstack. SMTPClient
is just a dependency.
I solved the problem with ghc-pkg unregister:
ierton@vault ~ % ghc-pkg unregister hsemail-1.6
ierton@vault ~ % cabal install hsemail-1.3
ierton@vault ~ % caball install SMTPClient
2010/3/26 Robert Wills
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
wrote: Hi. I was trying to install SMTPClient-1.0.1
Compiler reported me:
ierton@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@vault ~ % cabal install hsemail-1.3 # good, i suppose ierton@vault ~ % ghc-pkg hide hsemail-1.6 # Bad one ierton@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@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
-- С Уважением, Сергей. -- С Уважением, Сергей.

-----Urspr?ngliche Nachricht----- Von: Sergey Mironov Gesendet: 26.03.2010 10:30:06 An: beginners@haskell.org Betreff: Fwd: [Haskell-beginners] SMTPClient + hsemail-1.6 = errors
Thanks, Robert. But my real goal was to compile happstack. SMTPClient is just a dependency.
I solved the problem with ghc-pkg unregister:
ierton@vault ~ % ghc-pkg unregister hsemail-1.6 ierton@vault ~ % cabal install hsemail-1.3 ierton@vault ~ % caball install SMTPClient
You can also cabal-install with constraints. I don't remember the command-line syntax, I think it was something like cabal install 'constraint hsemail < 1.6' SMTPClient cabal install --help should tell you how exactly it ought to look. Sometimes unregistering the offending package is not an option because other packages depend on it.

On Fri, Mar 26, 2010 at 12:42 PM, Daniel Fischer
-----Urspr?ngliche Nachricht-----
You can also cabal-install with constraints. I don't remember the command-line syntax, I think it was something like
cabal install 'constraint hsemail < 1.6' SMTPClient
cabal install --contraint=hsemail<1.6 SMTPClient It's arguably the best (and easiest) thing to do if you don't wish to wait for a new version of SMTPClient with updated constraints or adapted to the change in hsemail. -- Jedaï

On Fri, Mar 26, 2010 at 1:24 PM, Chaddaï Fouché
On Fri, Mar 26, 2010 at 12:42 PM, Daniel Fischer
wrote: -----Urspr?ngliche Nachricht-----
You can also cabal-install with constraints. I don't remember the command-line syntax, I think it was something like
cabal install 'constraint hsemail < 1.6' SMTPClient
cabal install --contraint=hsemail<1.6 SMTPClient
It's arguably the best (and easiest) thing to do if you don't wish to wait for a new version of SMTPClient with updated constraints or adapted to the change in hsemail.
-- Jedaï
cabal install --constraint='hsemail < 1.6' SMTPClient

2010/3/26 Chaddaï Fouché
On Fri, Mar 26, 2010 at 12:42 PM, Daniel Fischer
wrote: -----Urspr?ngliche Nachricht-----
You can also cabal-install with constraints. I don't remember the command-line syntax, I think it was something like
cabal install 'constraint hsemail < 1.6' SMTPClient
cabal install --contraint=hsemail<1.6 SMTPClient
It's arguably the best (and easiest) thing to do if you don't wish to wait for a new version of SMTPClient with updated constraints or adapted to the change in hsemail.
-- Jedaï
cabal install --contraint=hsemail<1.6 SMTPClient
Really nice looking. Thanks, people! -- Thanks, Sergey
participants (3)
-
Chaddaï Fouché
-
Daniel Fischer
-
Sergey Mironov