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

Aggressive unregister for #2904 #3047

Merged
merged 2 commits into from
Mar 8, 2017
Merged

Conversation

snoyberg
Copy link
Contributor

@snoyberg snoyberg commented Mar 7, 2017

Note: Documentation fixes for https://docs.haskellstack.org/en/stable/ should target the "stable" branch, not master.

Please include the following checklist in your PR:

  • Any changes that could be relevant to users have been recorded in the ChangeLog.md
  • The documentation has been updated, if necessary.

Please also shortly describe how you tested your change. Bonus points for added tests!

Tested by following the repro steps in #2904.

I've made this PR against the release candidate branch since #2904 is marked as P1. @borsboom I leave it to your judgement whether this should be instead merged to master, and can update the PR accordingly.

CC @mgsloan @spikefoo

snoyberg added 2 commits March 7, 2017 14:40
The previous commit (fixing #2904) made the Maybe layer confusing and
error-prone. It was too easy to end up accidentally skipping an
unregister based on the two levels of Maybe wrapping. This simplifies
the codebase, without any change in behavior.

It would be even nicer to be able to prove statically that we always
generate a dirty reason.
@mgsloan
Copy link
Contributor

mgsloan commented Mar 7, 2017

LGTM! Nice solution.

@snoyberg snoyberg merged commit 6aa9f7a into rc/v1.4.0 Mar 8, 2017
@snoyberg snoyberg deleted the 2904-aggressive-unregister branch March 8, 2017 04:38
@mpilgrem mpilgrem mentioned this pull request Aug 25, 2023
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