I'm guessing that is indeed the problem, though I cannot reproduce the error (but I'm using Cabal-1.8.0.2).<br><br>Assuming this is the cause of the problem, what is the best correction? Encoding the cabal file as UTF-8 or removing the accent? Do earlier versions of cabal deal well with UTF-8?...<br>
<br><br>Cheers,<br>Pedro<br><br><div class="gmail_quote">On Tue, Feb 23, 2010 at 16:05, Bayley, Alistair <span dir="ltr"><<a href="mailto:Alistair.Bayley@invesco.com">Alistair.Bayley@invesco.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Just a wild guess, but the package description has this non-ascii text:<br>
<br>
author: Ralf Lämmel, Simon Peyton Jones<br>
<br>
It could well be Latin-1 encoded, rather than UTF8.<br>
<br>
Try editing the author field to this:<br>
<br>
author: Ralf Laemmel, Simon Peyton Jones<br>
<br>
and rebuilding/installing.<br>
<div><div></div><div class="h5"><br>
> -----Original Message-----<br>
> From: <a href="mailto:glasgow-haskell-users-bounces@haskell.org">glasgow-haskell-users-bounces@haskell.org</a><br>
> [mailto:<a href="mailto:glasgow-haskell-users-bounces@haskell.org">glasgow-haskell-users-bounces@haskell.org</a>] On Behalf<br>
> Of Simon Peyton-Jones<br>
> Sent: 23 February 2010 14:32<br>
> To: GHC users<br>
> Cc: <a href="mailto:cvs-ghc@haskell.org">cvs-ghc@haskell.org</a><br>
> Subject: FW: Installing syb(-0.1.03) package in head version<br>
> of Haskell<br>
><br>
> Friends<br>
><br>
><br>
><br>
> Can anyone help Kathleen out? She has a cabal-install issue.<br>
> I think she's on a Mac.<br>
><br>
><br>
><br>
> Many thanks<br>
><br>
><br>
> Simon<br>
><br>
><br>
><br>
> From: Kathleen Fisher [mailto:<a href="mailto:kathleen.fisher@gmail.com">kathleen.fisher@gmail.com</a>]<br>
> Sent: 16 February 2010 22:54<br>
> To: Simon Peyton-Jones<br>
> Subject: Fwd: Installing syb(-0.1.03) package in head version<br>
> of Haskell<br>
><br>
><br>
><br>
> Hi Simon,<br>
><br>
><br>
><br>
> I'm trying to get the PADS file we were working on compiling<br>
> under the HEAD version of Haskell, but I'm having trouble<br>
> getting the Data.Generics module to install. I sent the<br>
> question below to the <a href="mailto:libraries@haskell.org">libraries@haskell.org</a> last week, but I<br>
> haven't seen any replies. Is that the right address? Or is<br>
> there a different place to ask such questions?<br>
><br>
><br>
><br>
> Thanks for any pointers!<br>
><br>
><br>
><br>
> Kathleen<br>
><br>
><br>
><br>
> Begin forwarded message:<br>
><br>
><br>
><br>
><br>
><br>
> From: Kathleen Fisher <<a href="mailto:kathleen.fisher@gmail.com">kathleen.fisher@gmail.com</a>><br>
><br>
> Date: February 11, 2010 2:28:20 PM PST<br>
><br>
> To: <a href="mailto:libraries@haskell.org">libraries@haskell.org</a><br>
><br>
> Subject: Installing syb(-0.1.03) package in head version of Haskell<br>
><br>
><br>
><br>
> Hi all,<br>
><br>
> I'm trying to get a program that uses the Data.Generics<br>
> module to compile under the head version of GHC, but I am<br>
> having trouble getting the syb package installed.<br>
><br>
> I believe I am using the most recent version of cabal:<br>
><br>
><br>
><br>
><br>
> kfisher-laptop:/Users/kfisher/pads/dirpads/language-c-quote>~/<br>
> .cabal/bin/cabal --version<br>
><br>
> cabal-install version 0.8.0<br>
><br>
> using version 1.8.0.1 of the Cabal library<br>
><br>
><br>
> When I ask cabal to install the syb package, I get the<br>
> following error:<br>
><br>
><br>
><br>
><br>
> kfisher-laptop:/Users/kfisher/pads/dirpads/language-c-quote>~/<br>
> .cabal/bin/cabal install -w ~/sw/ghc-head/bin/ghc<br>
><br>
> Resolving dependencies...<br>
><br>
> Downloading mtl-1.1.0.2...<br>
><br>
> Configuring mtl-1.1.0.2...<br>
><br>
> Preprocessing library mtl-1.1.0.2...<br>
><br>
> ...<br>
><br>
> Registering syb-0.1.0.3...<br>
><br>
> cabal: ghc-pkg: <stdin>: hGetContents: invalid argument<br>
> (invalid UTF-8 byte<br>
><br>
> sequence)<br>
><br>
> cabal: Error: some packages failed to install:<br>
><br>
> language-c-quote-0.1 depends on syb-0.1.0.3 which<br>
> failed to install.<br>
><br>
> syb-0.1.0.3 failed during the building phase. The exception was:<br>
><br>
> exit: ExitFailure 1<br>
><br>
><br>
><br>
> The full trace is included below.<br>
><br>
> Here's the version information for the ghc I am running.<br>
><br>
><br>
><br>
><br>
> Kfisher-laptop:/Users/kfisher/pads/dirpads/language-c-quote>~/<br>
> sw/ghc-head/bin/ghc --version<br>
><br>
> The Glorious Glasgow Haskell Compilation System,<br>
> version 6.13.20100210<br>
><br>
><br>
> The cabal website suggests sending questions to this list...<br>
><br>
> Any suggestions for how to fix this problem?<br>
><br>
> Kathleen<br>
><br>
><br>
><br>
><br>
><br>
> kfisher-laptop:/Users/kfisher/pads/dirpads/language-c-quote>~/<br>
> .cabal/bin/cabal install -w ~/sw/ghc-head/bin/ghc<br>
><br>
> Resolving dependencies...<br>
><br>
> Downloading mtl-1.1.0.2...<br>
><br>
> Configuring mtl-1.1.0.2...<br>
><br>
> Preprocessing library mtl-1.1.0.2...<br>
><br>
> Building mtl-1.1.0.2...<br>
><br>
><br>
><br>
> ...stuff deleted...<br>
><br>
><br>
><br>
> src/Data/Generics.hs:40:1:<br>
><br>
> Warning: The import of `Prelude' is redundant<br>
><br>
> except perhaps to import instances from `Prelude'<br>
><br>
> To import instances alone, use: import Prelude()<br>
><br>
> Registering syb-0.1.0.3...<br>
><br>
> cabal: ghc-pkg: <stdin>: hGetContents: invalid argument<br>
> (invalid UTF-8 byte<br>
><br>
> sequence)<br>
><br>
> cabal: Error: some packages failed to install:<br>
><br>
> language-c-quote-0.1 depends on syb-0.1.0.3 which<br>
> failed to install.<br>
><br>
> syb-0.1.0.3 failed during the building phase. The exception was:<br>
><br>
> exit: ExitFailure 1<br>
><br>
><br>
><br>
><br>
</div></div>*****************************************************************<br>
Confidentiality Note: The information contained in this message,<br>
and any attachments, may contain confidential and/or privileged<br>
material. It is intended solely for the person(s) or entity to<br>
which it is addressed. Any review, retransmission, dissemination,<br>
or taking of any action in reliance upon this information by<br>
persons or entities other than the intended recipient(s) is<br>
prohibited. If you received this in error, please contact the<br>
sender and delete the material from any computer.<br>
*****************************************************************<br>
<br>
_______________________________________________<br>
Glasgow-haskell-users mailing list<br>
<a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
</blockquote></div><br>