Can't install haskellnet with ghc7

Hi -cafe, Did anybody managed to install haskellnet from hackage with ghc7? I tried on windows and mac and I get the following type error: [ 4 of 11] Compiling Network.HaskellNet.SMTP ( Network/HaskellNet/SMTP.hs, dist/build/Network/HaskellNet/SMTP.o ) Network/HaskellNet/SMTP.hs:269:25: Couldn't match expected type `Data.Text.Internal.Text' with actual type `[Char]' Expected type: Data.Text.Internal.Text Actual type: String In the first argument of `simpleMail', namely `to' In a stmt of a 'do' expression: myMail <- simpleMail to from subject plainBody htmlBody attachments Am I missing something? -- Cp

On 04/26/2011 10:17 PM, Charles-Pierre Astolfi wrote:
Hi -cafe,
Did anybody managed to install haskellnet from hackage with ghc7? I tried on windows and mac and I get the following type error:
[ 4 of 11] Compiling Network.HaskellNet.SMTP ( Network/HaskellNet/SMTP.hs, dist/build/Network/HaskellNet/SMTP.o ) Network/HaskellNet/SMTP.hs:269:25: Couldn't match expected type `Data.Text.Internal.Text' with actual type `[Char]' Expected type: Data.Text.Internal.Text Actual type: String In the first argument of `simpleMail', namely `to' In a stmt of a 'do' expression: myMail<- simpleMail to from subject plainBody htmlBody attachments
Am I missing something?
your mime-mail library is too recent. the upper version in the cabal file of haskellnet is not limited, so it's picking up the 0.3.0 version which is incompatible with the 0.2.x. Otherwise it was working for me with the previous version for both ghc6 and ghc7. -- Vincent

I tried to install haskellnet with mime-mail-0.2.x and an older
version of the text library but it still fails with the same error.
Btw, what is the best way to uninstall a package that has been
installed via cabal? (or to downgrade it, fwiw)
--
Cp
On Tue, Apr 26, 2011 at 23:31, Vincent Hanquez
On 04/26/2011 10:17 PM, Charles-Pierre Astolfi wrote:
Hi -cafe,
Did anybody managed to install haskellnet from hackage with ghc7? I tried on windows and mac and I get the following type error:
[ 4 of 11] Compiling Network.HaskellNet.SMTP ( Network/HaskellNet/SMTP.hs, dist/build/Network/HaskellNet/SMTP.o ) Network/HaskellNet/SMTP.hs:269:25: Couldn't match expected type `Data.Text.Internal.Text' with actual type `[Char]' Expected type: Data.Text.Internal.Text Actual type: String In the first argument of `simpleMail', namely `to' In a stmt of a 'do' expression: myMail<- simpleMail to from subject plainBody htmlBody attachments
Am I missing something?
your mime-mail library is too recent. the upper version in the cabal file of haskellnet is not limited, so it's picking up the 0.3.0 version which is incompatible with the 0.2.x.
Otherwise it was working for me with the previous version for both ghc6 and ghc7.
-- Vincent

On Wednesday 04 May 2011 21:57:51, Charles-Pierre Astolfi wrote:
I tried to install haskellnet with mime-mail-0.2.x and an older version of the text library but it still fails with the same error.
I just did $ cabal install --constraint="mime-mail < 0.3" HaskellNet and it worked fine (ghc-7.0.3), text-0.11.0.7. Try the above with the --dry-run flag first, if it says it would install packages which you already have (except mime-mail), that may indicate problems, otherwise go ahead.
Btw, what is the best way to uninstall a package that has been installed via cabal? (or to downgrade it, fwiw)
$ ghc-pkg unregister mime-mail-0.3.0 perhaps? cabal has no uninstall command, so that job is for ghc-pkg unregister, unless you're willing to delete the whole ~/.ghc/i386- linux-7.0.3 and start from next to nothing.

I just uploaded a new version of haskellnet that compiles with mime-mail-0.3.0. http://hackage.haskell.org/package/HaskellNet Hope that helps -- now for some sleep... http://hackage.haskell.org/package/HaskellNet-Rob On Wed, May 4, 2011 at 11:28 PM, Daniel Fischer < daniel.is.fischer@googlemail.com> wrote:
On Wednesday 04 May 2011 21:57:51, Charles-Pierre Astolfi wrote:
I tried to install haskellnet with mime-mail-0.2.x and an older version of the text library but it still fails with the same error.
I just did
$ cabal install --constraint="mime-mail < 0.3" HaskellNet
and it worked fine (ghc-7.0.3), text-0.11.0.7.
Try the above with the --dry-run flag first, if it says it would install packages which you already have (except mime-mail), that may indicate problems, otherwise go ahead.
Btw, what is the best way to uninstall a package that has been installed via cabal? (or to downgrade it, fwiw)
$ ghc-pkg unregister mime-mail-0.3.0
perhaps? cabal has no uninstall command, so that job is for ghc-pkg unregister, unless you're willing to delete the whole ~/.ghc/i386- linux-7.0.3 and start from next to nothing.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (4)
-
Charles-Pierre Astolfi
-
Daniel Fischer
-
Robert Wills
-
Vincent Hanquez