summaryrefslogtreecommitdiff
path: root/test/Main.hs
blob: c813e48b0dd881515c9eff00338aaf9f0abcb5fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Main where

import Control.Monad (forM_)

import GHC.GC_Hook


main :: IO ()
main = do
  setGCHook
  forM_ [1..10] $ \i -> do
    let l = [i..10000]
    print (sum l + product l + length l)
  getGCLog >>= print