blob: 52f41a38a1412303e48db03352f623640027450c (
plain)
1
2
3
4
5
6
7
8
9
10
|
{-# LANGUAGE MagicHash #-}
import Control.Concurrent
import qualified Data.Vector as U
main = do
t <- forkIO (U.sum (U.enumFromTo 1 (1000000000 :: Int)) `seq` return ())
threadDelay 10
killThread t
putStrLn "Done"
|