Stop using "Int" for microsecond delays in "base"

Liyang HU at
Fri Apr 8 03:23:05 CEST 2011

Paul Johnson <paul <at>> writes:
> The "base" library has the "threadDelay" primitive, which takes an Int 
> argument in microseconds.

I always end up with a wrapper around it, taking a NominalDiffTime; I could
never be sure whether threadDelay interpreted its argument as
milli-/micro-/nano-seconds without looking it up.

For lack of Data.Time in base, how about Data.Fixed.Pico?


More information about the Libraries mailing list