Skip to content

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

Merged
merged 3 commits into from
Mar 21, 2017
Merged

Add bracket #85

merged 3 commits into from
Mar 21, 2017

Conversation

no-longer-on-githu-b
Copy link
Contributor

No description provided.

@paf31
Copy link
Contributor

paf31 commented Feb 10, 2017

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?

@no-longer-on-githu-b
Copy link
Contributor Author

no-longer-on-githu-b commented Feb 10, 2017 via email

@paf31
Copy link
Contributor

paf31 commented Feb 16, 2017

👍 Looks good to me, thanks!

-- | release action is called regardless of whether the body action throws or
-- | returns.
withResource
:: ∀ e m r a
Copy link
Contributor

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?

-- | returns.
withResource
:: ∀ e m r a
. (MonadError e m)
Copy link
Contributor

Choose a reason for hiding this comment

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

Redundant parens

@no-longer-on-githu-b
Copy link
Contributor Author

@paf31 Any more comments on this?

@paf31
Copy link
Contributor

paf31 commented Mar 21, 2017

@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).

@paf31 paf31 merged commit d8d76f1 into purescript:master Mar 21, 2017
@paf31
Copy link
Contributor

paf31 commented Mar 21, 2017

Actually, no reason this can't go in now.

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