Created
April 17, 2012 12:05
-
-
Save dsp/2405580 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import System.IO | |
import Control.Concurrent | |
seconds ms = ms * 1000000 | |
repfn fn t = do threadDelay t | |
fn | |
repfn fn t | |
main = repfn fn $ seconds 1 | |
where fn = do putStr "hello world\n" | |
hFlush stdout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment