parallel icon indicating copy to clipboard operation
parallel copied to clipboard

Document what par undefined x does

Open no-longer-on-githu-b opened this issue 7 years ago • 2 comments
trafficstars

Currently it’s not clear from the documentation what par undefined x does. For example: does it throw an async exception? Does it memoize the exception? Can I rely on Control.Exception.evaluate rethrowing the exception?

no-longer-on-githu-b avatar Nov 23 '17 18:11 no-longer-on-githu-b

Experimenting a bit in GHCi, it looks like it saves the exception and throws it if and when the undefined value is demanded.

treeowl avatar Jun 03 '18 04:06 treeowl

par undefined x == x

simonmar avatar Jun 04 '18 18:06 simonmar