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

Re-source Resource #268

Merged
merged 5 commits into from
Oct 16, 2019
Merged

Re-source Resource #268

merged 5 commits into from
Oct 16, 2019

Conversation

robrix
Copy link
Contributor

@robrix robrix commented Oct 16, 2019

This PR removes the Resource effect, as it’s now been relocated to fused-effects-exceptions: fused-effects/fused-effects-exceptions#5.

@robrix robrix added this to the 1.0 milestone Oct 16, 2019
Copy link
Contributor Author

@robrix robrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready for review.

-- nor will it handle exceptions thrown from pure code. If you need to handle IO-based errors,
-- consider if 'Control.Effect.Resource' fits your use case; if not, use 'Control.Monad.IO.Class.liftIO' with
-- 'Control.Exception.try' or use 'Control.Exception.catch' from outside the effect invocation.
-- Errors thrown by the handler will escape up to the nearest enclosing 'catchError' (if any). Note that this effect does /not/ handle errors thrown from impure contexts such as IO, nor will it handle exceptions thrown from pure code. If you need to handle IO-based errors, consider if @fused-effects-exceptions@ fits your use case; if not, use 'Control.Monad.IO.Class.liftIO' with 'Control.Exception.try' or use 'Control.Exception.catch' from outside the effect invocation.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Soft-wrapped.

  2. Replaced a reference to Control.Effect.Resource with a reference to fused-effects-exceptions.

@robrix robrix marked this pull request as ready for review October 16, 2019 01:43
@patrickt patrickt merged commit 37c99cc into master Oct 16, 2019
@patrickt patrickt deleted the re-source-resource branch October 16, 2019 21:41
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.

Resource.finally drops writes Another Resource effect?
2 participants