Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document what par undefined x does #19

Open
rightfold opened this issue Nov 23, 2017 · 2 comments
Open

Document what par undefined x does #19

rightfold opened this issue Nov 23, 2017 · 2 comments

Comments

@rightfold
Copy link

rightfold commented Nov 23, 2017

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?

@treeowl
Copy link
Contributor

treeowl commented Jun 3, 2018

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

@simonmar
Copy link
Member

simonmar commented Jun 4, 2018

par undefined x == x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants