killThread doc bug

Dean Herington heringto at cs.unc.edu
Thu Aug 29 14:14:54 EDT 2002


http://www.haskell.org/ghc/docs/latest/html/base/GHC.Conc.html says:

The killThread function may be defined in terms of throwTo:

    killThread = throwTo (AsyncException ThreadKilled)

I think it should be:

    killThread = flip throwTo (AsyncException ThreadKilled)

or, perhaps better:

    killThread tid = throwTo tid (AsyncException ThreadKilled)





More information about the Glasgow-haskell-bugs mailing list