3965965fe0d1855c68df499eec19307a70eb15957bb718328e95a7bf24e92230

Download raw

Created: 2019-10-12 06:53:48.403379 UTC

Size: 570

Preview (limited to 512 bytes)

"-- Test for ticket #4218 (TestRandomIOs):\n-- https://ghc.haskell.org/trac/ghc/ticket/4218\n--\n-- Used to fail with:\n--\n-- $ cabal test TestRandomIOs --test-options=\"+RTS -M1M -RTS\"\n-- TestRandomIOs: Heap exhausted;\n\nmodule Main where\n\nimport Control.Monad (replicateM)\nimport System.Random (randomIO)\n\n-- Build a list of 5000 random ints in memory (IO Monad is strict), and print\n-- the last one.\n-- Should use less than 1Mb of heap space, or we are generating a list of\n-- unevaluated thunks.\nmain = do\n rs <-"


A service provided by FP Complete