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">&lt;<a href="mailto:thomas.dubuisson@gmail.com">thomas.dubuisson@gmail.com</a>&gt;</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 &#39;random == 1.0.1.0&#39;<br>
<br>
I&#39;m guessing the issue is your &quot;random&quot; 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 &lt;<a href="mailto:limestrael@gmail.com">limestrael@gmail.com</a>&gt; wrote:<br>
&gt; I&#39;m using GHC 7.2.1 and cabal-install 0.8 (Cabal 1.8.0.2), and when<br>
&gt; &quot;cabal install rsa&quot;<br>
&gt;<br>
&gt; I got the error<br>
&gt; $ cabal install rsa<br>
&gt; Resolving dependencies...<br>
&gt; Configuring RSA-1.0.6.2...<br>
&gt; Preprocessing library RSA-1.0.6.2...<br>
&gt; Preprocessing executables for RSA-1.0.6.2...<br>
&gt; Building RSA-1.0.6.2...<br>
&gt; [1 of 1] Compiling Codec.Crypto.RSA ( Codec/Crypto/RSA.hs,<br>
&gt; dist/build/Codec/Crypto/RSA.o )<br>
&gt;<br>
&gt; Codec/Crypto/RSA.hs:580:10:<br>
&gt;     Duplicate instance declarations:<br>
&gt;       instance Random Word8 -- Defined at Codec/Crypto/RSA.hs:580:10-21<br>
&gt;       instance Random Word8 -- Defined in System.Random<br>
&gt; cabal: Error: some packages failed to install:<br>
&gt; RSA-1.0.6.2 failed during the building phase. The exception was:<br>
&gt; ExitFailure 1<br>
&gt;<br>
&gt; Apparently it&#39;s an instance being declared twice.<br>
&gt; However RSA hackage page states that it compiles under GHC 7.2:<br>
&gt; <a href="http://hackage.haskell.org/package/RSA" target="_blank">http://hackage.haskell.org/package/RSA</a><br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Haskell-Cafe mailing list<br>
&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>