a35dd8b4740fe2279ed1ab4d366d5168fa74faac4ca0f5de3dcd6d069a9bbf5c

Download raw

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

Size: 648

Preview (limited to 512 bytes)

"-- Test for ticket #4218 (TestRandomRs):\n-- https://ghc.haskell.org/trac/ghc/ticket/4218\n--\n-- Fixed together with ticket #8704\n-- https://ghc.haskell.org/trac/ghc/ticket/8704\n-- Commit 4695ffa366f659940369f05e419a4f2249c3a776\n--\n-- Used to fail with:\n--\n-- $ cabal test TestRandomRs --test-options=\"+RTS -M1M -RTS\"\n-- TestRandomRs: Heap exhausted;\n\nmodule Main where\n\nimport Control.Monad (liftM, replicateM)\nimport System.Random (randomRs, getStdGen)\n\n-- Return the five-thousandth random number:\n-- Should run"


A service provided by FP Complete