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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow EXCEPTION effect in updates #58

Merged
merged 1 commit into from
Jul 20, 2016
Merged

Allow EXCEPTION effect in updates #58

merged 1 commit into from
Jul 20, 2016

Conversation

garyb
Copy link
Contributor

@garyb garyb commented Jul 19, 2016

I'm submitting this as a workaround for purescript/purescript#2236.

The problem that's arising is that as long as we disallow duplicate labels in rows, the current setup of the effect rows in pux prevents the err :: EXCEPTION effect from appearing in update (maybe that's a good thing though? 馃槈). So in the linked issue, there's no type that can satisfy the requirements of both the implementation of update and its usage within pux.

The issue arises due to the signature of launchAff, but since it is only extending the row with EXCEPTION, the unsafeInterleaveAff coercion is safe here, since we're not arbitrarily removing some effect that could occur.

@alexmingoia alexmingoia merged commit f542c10 into alexmingoia:master Jul 20, 2016
@garyb garyb deleted the effects branch July 20, 2016 10:04
jagajaga pushed a commit to input-output-hk/rscoin-haskell that referenced this pull request Jul 22, 2016
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.

None yet

2 participants