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

Feature Request - monadic blocks #87

Open
strega-nil opened this issue Nov 25, 2017 · 2 comments
Open

Feature Request - monadic blocks #87

strega-nil opened this issue Nov 25, 2017 · 2 comments

Comments

@strega-nil
Copy link

I'd like to be able to write something like

      get_structural_ty(lhs, ty_names)
      >>= (lhs) => get_structural_ty(rhs, ty_names)
      >>= (rhs) => pure(Ty_lam(lhs, rhs))

however, when refmt is run on this code, it turns out like

      get_structural_ty(lhs, ty_names)
      >>= ((lhs) => get_structural_ty(rhs, ty_names) >>= ((rhs) => pure(Ty_lam(lhs, rhs))))

which is quite a bit less readable.

@rickyvetter
Copy link
Collaborator

Is this reason-tools specific? Or does it happen with refmt in your editor/cli as well? If the later, we should upstream this request to reason repo.

@strega-nil
Copy link
Author

it happens with refmt in my editor, yeah.

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

2 participants