[Haskell-cafe] Error when installing RSA (for yesod) with GHC 7.2.1

Yves Parès limestrael at gmail.com
Mon Oct 24 23:13:32 CEST 2011


I'm using GHC 7.2.1 and cabal-install 0.8 (Cabal 1.8.0.2), and when
"cabal install rsa"

I got the error
$ cabal install rsa
Resolving dependencies...
Configuring RSA-1.0.6.2...
Preprocessing library RSA-1.0.6.2...
Preprocessing executables for RSA-1.0.6.2...
Building RSA-1.0.6.2...
[1 of 1] Compiling Codec.Crypto.RSA ( Codec/Crypto/RSA.hs,
dist/build/Codec/Crypto/RSA.o )

Codec/Crypto/RSA.hs:580:10:
    Duplicate instance declarations:
      instance Random Word8 -- Defined at Codec/Crypto/RSA.hs:580:10-21
      instance Random Word8 -- Defined in System.Random
cabal: Error: some packages failed to install:
RSA-1.0.6.2 failed during the building phase. The exception was:
ExitFailure 1

Apparently it's an instance being declared twice.
However RSA hackage page states that it compiles under GHC 7.2:
http://hackage.haskell.org/package/RSA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111024/39b0d2e3/attachment.htm>


More information about the Haskell-Cafe mailing list