Download raw

Created: 2023-12-19 03:40:10.302489 UTC

Size: 593

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 TestRandomIOs 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 :: IO"

Casa is a service provided by the Haskell Foundation │ Originally developed by FP Complete