Skip to content

Instantly share code, notes, and snippets.

@sw17ch
Created February 13, 2013 21:50
Show Gist options
  • Save sw17ch/4948663 to your computer and use it in GitHub Desktop.
Save sw17ch/4948663 to your computer and use it in GitHub Desktop.
module Main where
import Control.Concurrent
import System.IO
main :: IO ()
main = do
hSetBuffering stdout NoBuffering
mapM_ (forkIO . putStrLn . repeat) ['a'..'z']
threadDelay 1000000
@sw17ch
Copy link
Author

sw17ch commented Feb 13, 2013

ghc -Wall --make soup.hs -threaded -o soup
./soup +RTS -N4 -RTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment