Test failures
maralorn opened this issue · comments
maralorn commented
When trying to build the newest pcg-random
from hackage with ghc 8.10 we get the following test errors in nixpkgs:
Running 1 test suites...
Test suite doctests: RUNNING...
/build/pcg-random-0.1.3.6/src/System/Random/PCG/Pure.hs:222: failure in expression `initFrozen 0 0'
expected: SetSeq 6364136223846793006 1
but got:
^
<interactive>:103:1: error:
Ambiguous occurrence ‘initFrozen’
It could refer to
either ‘System.Random.PCG.initFrozen’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG.hs:114:1
or ‘System.Random.PCG.Pure.initFrozen’,
imported from ‘System.Random.PCG.Pure’
(and originally defined
at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Pure.hs:225:1-10)
or ‘System.Random.PCG.Single.initFrozen’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Single.hs:109:1
/build/pcg-random-0.1.3.6/src/System/Random/PCG/Pure.hs:233: failure in expression `initialize 0 0 >>= save'
expected: SetSeq 6364136223846793006 1
but got:
^
<interactive>:115:1: error:
Ambiguous occurrence ‘initialize’
It could refer to
either ‘System.Random.PCG.initialize’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG.hs:164:1
or ‘System.Random.PCG.Pure.initialize’,
imported from ‘System.Random.PCG.Pure’
(and originally defined
at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Pure.hs:236:1-10)
or ‘System.Random.PCG.Single.initialize’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Single.hs:140:1
<interactive>:115:20: error:
Ambiguous occurrence ‘save’
It could refer to
either ‘System.Random.PCG.save’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG.hs:94:1
or ‘System.Random.PCG.Pure.save’,
imported from ‘System.Random.PCG.Pure’
(and originally defined
at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Pure.hs:205:1-4)
or ‘System.Random.PCG.Single.save’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Single.hs:93:1
/build/pcg-random-0.1.3.6/src/System/Random/PCG/Pure.hs:255: failure in expression `create >>= \g -> replicateM_ 1000 (uniformW32 g) >> uniformW32 g'
expected: 3640764222
but got:
^
<interactive>:127:1: error:
Ambiguous occurrence ‘create’
It could refer to
either ‘System.Random.PCG.create’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG.hs:157:1
or ‘System.Random.PCG.Pure.create’,
imported from ‘System.Random.PCG.Pure’
(and originally defined
at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Pure.hs:229:1-6)
or ‘System.Random.PCG.Single.create’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Single.hs:119:1
/build/pcg-random-0.1.3.6/src/System/Random/PCG/Pure.hs:271: failure in expression `create >>= \g -> replicateM 3 (uniformW32 g)'
expected: [355248013,41705475,3406281715]
but got:
^
<interactive>:139:1: error:
Ambiguous occurrence ‘create’
It could refer to
either ‘System.Random.PCG.create’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG.hs:157:1
or ‘System.Random.PCG.Pure.create’,
imported from ‘System.Random.PCG.Pure’
(and originally defined
at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Pure.hs:229:1-6)
or ‘System.Random.PCG.Single.create’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Single.hs:119:1
/build/pcg-random-0.1.3.6/src/System/Random/PCG/Fast/Pure.hs:170: failure in expression `initFrozen 0'
expected: F 1
but got:
^
<interactive>:161:1: error:
Ambiguous occurrence ‘initFrozen’
It could refer to
either ‘System.Random.PCG.initFrozen’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG.hs:114:1
or ‘System.Random.PCG.Fast.Pure.initFrozen’,
imported from ‘System.Random.PCG.Fast.Pure’
(and originally defined
at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Fast/Pure.hs:173:1-10)
or ‘System.Random.PCG.Pure.initFrozen’,
imported from ‘System.Random.PCG.Pure’
(and originally defined
at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Pure.hs:225:1-10)
or ‘System.Random.PCG.Single.initFrozen’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Single.hs:109:1
/build/pcg-random-0.1.3.6/src/System/Random/PCG/Fast/Pure.hs:185: failure in expression `initialize 0 >>= save'
expected: F 1
but got:
^
<interactive>:173:1: error:
Ambiguous occurrence ‘initialize’
It could refer to
either ‘System.Random.PCG.initialize’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG.hs:164:1
or ‘System.Random.PCG.Fast.Pure.initialize’,
imported from ‘System.Random.PCG.Fast.Pure’
(and originally defined
at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Fast/Pure.hs:188:1-10)
or ‘System.Random.PCG.Pure.initialize’,
imported from ‘System.Random.PCG.Pure’
(and originally defined
at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Pure.hs:236:1-10)
or ‘System.Random.PCG.Single.initialize’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Single.hs:140:1
<interactive>:173:18: error:
Ambiguous occurrence ‘save’
It could refer to
either ‘System.Random.PCG.save’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG.hs:94:1
or ‘System.Random.PCG.Fast.Pure.save’,
imported from ‘System.Random.PCG.Fast.Pure’
(and originally defined
at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Fast/Pure.hs:157:1-4)
or ‘System.Random.PCG.Pure.save’,
imported from ‘System.Random.PCG.Pure’
(and originally defined
at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Pure.hs:205:1-4)
or ‘System.Random.PCG.Single.save’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Single.hs:93:1
/build/pcg-random-0.1.3.6/src/System/Random/PCG/Fast/Pure.hs:206: failure in expression `create >>= \g -> replicateM_ 1000 (uniformW32 g) >> uniformW32 g'
expected: 3725702568
but got:
^
<interactive>:185:1: error:
Ambiguous occurrence ‘create’
It could refer to
either ‘System.Random.PCG.create’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG.hs:157:1
or ‘System.Random.PCG.Fast.Pure.create’,
imported from ‘System.Random.PCG.Fast.Pure’
(and originally defined
at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Fast/Pure.hs:181:1-6)
or ‘System.Random.PCG.Pure.create’,
imported from ‘System.Random.PCG.Pure’
(and originally defined
at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Pure.hs:229:1-6)
or ‘System.Random.PCG.Single.create’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Single.hs:119:1
/build/pcg-random-0.1.3.6/src/System/Random/PCG/Fast/Pure.hs:222: failure in expression `create >>= \g -> replicateM 3 (uniformW32 g)'
expected: [2951688802,2698927131,361549788]
but got:
^
<interactive>:197:1: error:
Ambiguous occurrence ‘create’
It could refer to
either ‘System.Random.PCG.create’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG.hs:157:1
or ‘System.Random.PCG.Fast.Pure.create’,
imported from ‘System.Random.PCG.Fast.Pure’
(and originally defined
at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Fast/Pure.hs:181:1-6)
or ‘System.Random.PCG.Pure.create’,
imported from ‘System.Random.PCG.Pure’
(and originally defined
at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Pure.hs:229:1-6)
or ‘System.Random.PCG.Single.create’,
defined at /build/pcg-random-0.1.3.6/src/System/Random/PCG/Single.hs:119:1
Examples: 50 Tried: 44 Errors: 0 Failures: 8
Test suite doctests: FAIL
Test suite logged to: dist/test/pcg-random-0.1.3.6-doctests.log
0 of 1 test suites (0 of 1 test cases) passed.
Christopher Chalmers commented