The vector-random package regression

I'm not sure if this is a recent regression but I just installed the Haskell Platfom 2012.2. The email for the maintainer dons@galois.com (Don Stewart) no longer seems to be valid. Dominic. Tests-MacBook-Pro:R Test$ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.4.1 Tests-MacBook-Pro:R Test$ cabal install vector-random Resolving dependencies... Configuring vector-random-0.2... Building vector-random-0.2... Preprocessing library vector-random-0.2... [1 of 1] Compiling Data.Vector.Random.Mersenne ( Data/Vector/Random/Mersenne.hs, dist/build/Data/Vector/Random/Mersenne.o ) Data/Vector/Random/Mersenne.hs:85:5: The INLINE pragma for default method `random' lacks an accompanying binding cabal: Error: some packages failed to install: vector-random-0.2 failed during the building phase. The exception was: ExitFailure 1

On Sun, 10 Jun 2012, Dominic Steinitz wrote:
I'm not sure if this is a recent regression but I just installed the Haskell Platfom 2012.2. The email for the maintainer dons@galois.com (Don Stewart) no longer seems to be valid.
As far as I know, earlier versions of GHC didn't check for unused INLINE pragmas.

On 10/06/2012 16:37, Henning Thielemann wrote:
On Sun, 10 Jun 2012, Dominic Steinitz wrote:
I'm not sure if this is a recent regression but I just installed the Haskell Platfom 2012.2. The email for the maintainer dons@galois.com (Don Stewart) no longer seems to be valid.
As far as I know, earlier versions of GHC didn't check for unused INLINE pragmas.
That was relatively easy to fix but I don't think I can submit a patch as there is no repository for the code and the email of the maintainer is no longer valid. I am probably using the package incorrectly but worse, for some types it does not seem to generate random values - see below. I don't think there's anyway of submitting a bug report; I'm reporting it here so there is at least some awareness there might be a problem. Dominic.
import qualified Data.Vector.Unboxed as U import System.Random.Mersenne.Pure64 import qualified Data.Vector.Random.Mersenne as G main = do h <- newPureMT let b = G.randoms h 10 :: U.Vector Bool print b
*Main> main fromList [True,True,True,True,True,True,True,True,True,True]

That reminds me of: http://search.dilbert.com/comic/Random%20Number%20Generator (sorry if this off-topic post offends anyone on this otherwise serious list) Best regards, Krzysztof Skrzętnicki On Sat, Jun 16, 2012 at 1:52 PM, Dominic Steinitz < idontgetoutmuch@googlemail.com> wrote:
import qualified Data.Vector.Unboxed as U
import System.Random.Mersenne.Pure64 import qualified Data.Vector.Random.Mersenne as G main = do h <- newPureMT let b = G.randoms h 10 :: U.Vector Bool print b
*Main> main fromList [True,True,True,True,True,**True,True,True,True,True]
______________________________**_________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/**mailman/listinfo/librarieshttp://www.haskell.org/mailman/listinfo/libraries
participants (3)
-
Dominic Steinitz
-
Henning Thielemann
-
Krzysztof Skrzętnicki