[Haskell-cafe] Barrier implementation

Bertram Felgenhauer bertram.felgenhauer at googlemail.com
Fri Dec 16 13:27:05 EST 2005


Lemmih wrote:
> On 12/16/05, Peter Eriksen <s022018 at student.dtu.dk> wrote:
> > >       threadDelay (10*10^6)
> 
> 10*10^6 == 10e6, btw.

But the types are different. For sake of completeness:

  (10*10^6, 10*10^^6, 10*10**6, 10e6) ::
  (Num a, Fractional b, Floating c, Fractional d) => (a, b, c, d)

threadDelay wants an Int, so 10e6 won't work.

Bertram


More information about the Haskell-Cafe mailing list