persistent-tests: Duplicate instance declarations for Random Int32 and Int64 when random >= #51

ecyrb opened this Issue Feb 1, 2012 · 2 comments


None yet

2 participants

ecyrb commented Feb 1, 2012

When building persistent:

now running persistent tests
testing persistent-test
Resolving dependencies...
Configuring persistent-test-0.8.0...
Preprocessing library persistent-test-0.8.0...
Preprocessing test suites for persistent-test-0.8.0...
Building persistent-test-0.8.0...
[24 of 24] Compiling PersistentTest   ( PersistentTest.hs, dist/build/PersistentTest.o )
Loading package ghc-prim ... linking ... done.
Loading package random- ... linking ... done.

    Duplicate instance declarations:
      instance Random Int32 -- Defined at PersistentTest.hs:283:10-21
      instance Random Int32 -- Defined in System.Random

    Duplicate instance declarations:
      instance Random Int64 -- Defined at PersistentTest.hs:291:10-21
      instance Random Int64 -- Defined in System.Random
ecyrb commented Feb 2, 2012

Maybe change the line
#if !MIN_VERSION_base(4,5,0)
#if !MIN_VERSION_random(1,0,1)

@snoyberg snoyberg added a commit that referenced this issue Feb 2, 2012
@snoyberg snoyberg random 1.0.1 (#51) 93fa491
snoyberg commented Feb 2, 2012

Good call, thanks!

@snoyberg snoyberg closed this Feb 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment