Skip to content

fixes #9 : nodeValue should return Effect (Maybe String) #10

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

Merged
merged 1 commit into from
Jun 2, 2019

Conversation

bbarker
Copy link
Contributor

@bbarker bbarker commented May 18, 2019

No description provided.

@garyb
Copy link
Member

garyb commented May 20, 2019

I'll accept this soon, just need to set enough time aside for dealing with updating dependants also, since this is a breaking change.

I'll try using version ranges for the dependants so they can be done as non-breaking bumps - in theory that should work, and is the model we'd like to use for these kind of changes, it just remains to be seen how well bower deals with it... it should be fine in theory. It's all a non-issue for spago users though.

@bbarker
Copy link
Contributor Author

bbarker commented May 20, 2019

No worries - if it will take considerable time, I'd like to discuss another option that I haven't had time to create an issue for yet, but briefly this would be to potentially reduce the number of Effect-ful calls. I feel like I've seen a number of DOM methods that, according to DOM spec, do not throw exceptions - but maybe there are undocumented exceptions? Or maybe we want to treat (almost) all interactions with the DOM as effectful?

@garyb
Copy link
Member

garyb commented May 20, 2019

I think most things have to be effectful because of mutability, more so than they can throw exceptions.

@bbarker
Copy link
Contributor Author

bbarker commented May 20, 2019 via email

@garyb garyb merged commit 0c47ae3 into purescript-web:master Jun 2, 2019
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

Successfully merging this pull request may close these issues.

2 participants