[Haskell-beginners] "sleep" in Haskell
aditya siram
aditya.siram at gmail.com
Wed Oct 14 19:20:42 EDT 2009
Look here:
http://haskell.org/ghc/docs/latest/html/libraries/base/Control-Concurrent.html#v:threadDelay
Here is a sample function that delays for 3 seconds and then dies:
main :: IO ()
main = do
threadDelay 30000
return ()
-deech
On Wed, Oct 14, 2009 at 6:16 PM, Brandon S. Allbery KF8NH <
allbery at ece.cmu.edu> wrote:
> On Oct 14, 2009, at 19:14 , Michael Mossey wrote:
>
>> Hmm, I can't find anything like this. Do you have any other ideas?
>>
>
>
> It's actually in Control.Concurrent.
>
> --
> brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
> system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
> electrical and computer engineering, carnegie mellon university KF8NH
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20091014/4568ad4c/attachment.html
More information about the Beginners
mailing list