Skip to content

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

Merged
garyb merged 1 commit into
purescript-web:masterfrom
bbarker:nodeValue_maybe
Jun 2, 2019
Merged

fixes #9 : nodeValue should return Effect (Maybe String)#10
garyb merged 1 commit into
purescript-web:masterfrom
bbarker:nodeValue_maybe

Conversation

@bbarker
Copy link
Copy Markdown
Contributor

@bbarker bbarker commented May 18, 2019

No description provided.

@garyb
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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