documentation in GHC.Conc, Control.Parallel.Strategies; querying number of CPUs

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Mon Jul 16 12:16:29 EDT 2007


Frederik Eaton <frederik at a5.repetae.net> wrote:

> In particular, I wonder: How is pseq different from seq? Under what
> circumstances is it used?

`pseq` is a "genuine" operational sequence operator.  Haskell'98's
    x `seq` y
does not guarantee that x is evaluated to WHNF before y, whereas `pseq`
does guarantee exactly this.

Regards,
    Malcolm


More information about the Libraries mailing list