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

Add syntax for MonadError, MonadReader, and MonadState #561

Closed
ceedubs opened this issue Oct 5, 2015 · 6 comments
Closed

Add syntax for MonadError, MonadReader, and MonadState #561

ceedubs opened this issue Oct 5, 2015 · 6 comments

Comments

@ceedubs
Copy link
Contributor

ceedubs commented Oct 5, 2015

Currently these type classes don't have syntax support.

@stew
Copy link
Contributor

stew commented Jan 28, 2016

what would syntax support allow you to do that you can't do now?

@adelbertc
Copy link
Contributor

i've found myself wanting MonadError#handleError

@stew
Copy link
Contributor

stew commented Jan 29, 2016

ah yes, that one makes sense. I'm not sure what makes sense for Reader. i guess with state we can expose put and and modify but read doesn't make sense, right?

@adelbertc
Copy link
Contributor

Agreed

@davegurnell
Copy link

I'm in need of handleError. I'll knock up a PR for ApplicativeError covering as many of these as I can work out:

  • raiseError
  • handleErrorWith
  • handleError
  • attempt
  • attemptT
  • recover
  • recoverWith

@edmundnoble
Copy link
Contributor

We have syntax for MonadReader and MonadState in cats-mtl; every transformer class has all of the syntax that makes sense for it.

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

No branches or pull requests

5 participants