-
Notifications
You must be signed in to change notification settings - Fork 43
Add bracket #85
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
Add bracket #85
Conversation
Looks good, but I wonder if there's a better name. I know Haskell uses |
Yeah perhaps 😂 I like that name.
Sent from my iPhone.
… Op 10 feb. 2017 om 22:53 heeft Phil Freeman ***@***.***> het volgende geschreven:
Looks good, but I wonder if there's a better name. I know Haskell uses bracket, but it's not great IMO. What about withResource?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
👍 Looks good to me, thanks! |
src/Control/Monad/Error/Class.purs
Outdated
-- | release action is called regardless of whether the body action throws or | ||
-- | returns. | ||
withResource | ||
:: ∀ e m r a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use forall
here?
src/Control/Monad/Error/Class.purs
Outdated
-- | returns. | ||
withResource | ||
:: ∀ e m r a | ||
. (MonadError e m) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant parens
@paf31 Any more comments on this? |
@rightfold It looks good, thanks. I have a mountain of PRs to merge, but we'll get them merged before the next major releases (which will coincide with 0.11). |
Actually, no reason this can't go in now. |
No description provided.