How do I sleep in Ghc?
Ken Shan
ken at digitas.harvard.edu
Mon Dec 8 22:18:15 EST 2003
Ben_Yu at asc.aon.com wrote in article <OFBA77FED4.FBE4FC84-ON86256DF6.00802FA7-86256DF6.0080EF98 at COMBINED.COM> in gmane.comp.lang.haskell.general:
> In Ghc, how do I sleep for say, 1 minute? I'm trying to write a simple file
> arrival listener and could not find the sleep api. Can haskell do it at
> all?
Use threadDelay from the Control.Concurrent package.
--
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
International Human Rights Day * 2003-12-10 * http://www.un.org/rights/
What if All Chemists Went on Strike? (science fiction)
http://www.iupac.org/publications/ci/2003/2506/iw3_letters.html
More information about the Haskell
mailing list