[darcs-devel] darcs patch: Fix bug in tag --checkpoint. (and 9 more)
Eric Y. Kow
eric.kow at gmail.com
Sun Sep 2 15:59:07 UTC 2007
> Wed Aug 15 21:28:56 CEST 2007 Eric Kow <eric.kow at gmail.com>
> * Remove now obsolete hackery.
Hmm, maybe this is not so obsolete after all. The Windows sleep returns
CInt, not Int. So either the Windows sleep will need to be tweaked or
we'll need to fix this comment (should be an easy tweak, but maybe not
worth it). All I wanted to simplify away an old comment.
> -wait_a_moment :: IO ()
> -wait_a_moment = do { sleep 1; return () }
> - -- HACKERY: In ghc 6.1, sleep has the type signature IO Int; it
> - -- returns an integer just like sleep(3) does. To stay compatible
> - -- with older versions, though, we just ignore sleep's return
> - -- value. Hackery, like I said.
> +wait_a_moment :: IO Int
> +wait_a_moment = sleep 1
--
Eric Kow http://www.loria.fr/~kow
PGP Key ID: 08AC04F9 Merci de corriger mon français.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20070902/4bc8a3a0/attachment.pgp
More information about the darcs-devel
mailing list