Created
November 25, 2015 16:44
-
-
Save sajith/a3a1330481581efbae3f 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
module Forever where | |
import Control.Concurrent (threadDelay) | |
import Control.Monad (forever) | |
loop :: Integer -> IO () | |
loop i = forever (print i >> threadDelay (10^4) >> loop (i+1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment