High-quality splittable pseudorandom number generator

#7"cabal install tf-random" failed on Windows 7

I tried to install tf-random-0.5 on Windows 7 with:

> cabal install tf-random

which resulted in the following error:

cabal: Error: some packages failed to install: tf-random-0.5 failed during the final install step. The exception was: C:-tf-random-04764.5: hGetContents: invalid argument (invalid byte sequence)

It seems the problem was due to encoding of "tf-random.cabal" file (especially due to it contains non-ASCII charactors).

I could install it by manually changing the encoding from UTF8 to Shift-JIS (which seems to be the default encoding on my computer).

    • description updated
  • This also failed in Docker under Ubuntu 14.04 for me, using the latest Stackage distribution of Haskell, with a similar error.

    cabal: Error: some packages failed to install: QuickCheck-2.7.6 depends on tf-random-0.5 which failed to install. haskoin-0.2.0 depends on tf-random-0.5 which failed to install. tf-random-0.5 failed during the final install step. The exception was: /tmp/pkgConf-tf-random-010.5: hGetContents: invalid argument (invalid byte sequence)

    • status set to closed

    I managed to successfully install by adding this line at the beginning of my Dockerfile:

    ENV LANG C.UTF-8