Nope, I already have random 1.0.1.0 installed...<br><br><br><div class="gmail_quote">2011/10/24 Thomas DuBuisson <span dir="ltr"><<a href="mailto:thomas.dubuisson@gmail.com">thomas.dubuisson@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Try to install with: cabal install RSA 'random == 1.0.1.0'<br>
<br>
I'm guessing the issue is your "random" library is less than 1.0.1 and<br>
also includes an instance of Word8 (in other words, the GHC release<br>
you use pulled an unofficial version from the repo).<br>
<br>
Cheers,<br>
Thomas<br>
<div><div></div><div class="h5"><br>
On Mon, Oct 24, 2011 at 2:13 PM, Yves Parès <<a href="mailto:limestrael@gmail.com">limestrael@gmail.com</a>> wrote:<br>
> I'm using GHC 7.2.1 and cabal-install 0.8 (Cabal 1.8.0.2), and when<br>
> "cabal install rsa"<br>
><br>
> I got the error<br>
> $ cabal install rsa<br>
> Resolving dependencies...<br>
> Configuring RSA-1.0.6.2...<br>
> Preprocessing library RSA-1.0.6.2...<br>
> Preprocessing executables for RSA-1.0.6.2...<br>
> Building RSA-1.0.6.2...<br>
> [1 of 1] Compiling Codec.Crypto.RSA ( Codec/Crypto/RSA.hs,<br>
> dist/build/Codec/Crypto/RSA.o )<br>
><br>
> Codec/Crypto/RSA.hs:580:10:<br>
> Duplicate instance declarations:<br>
> instance Random Word8 -- Defined at Codec/Crypto/RSA.hs:580:10-21<br>
> instance Random Word8 -- Defined in System.Random<br>
> cabal: Error: some packages failed to install:<br>
> RSA-1.0.6.2 failed during the building phase. The exception was:<br>
> ExitFailure 1<br>
><br>
> Apparently it's an instance being declared twice.<br>
> However RSA hackage page states that it compiles under GHC 7.2:<br>
> <a href="http://hackage.haskell.org/package/RSA" target="_blank">http://hackage.haskell.org/package/RSA</a><br>
><br>
</div></div>> _______________________________________________<br>
> Haskell-Cafe mailing list<br>
> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
><br>
><br>
</blockquote></div><br>