Skip to content

Feature Request - monadic blocks #87

@strega-nil

Description

@strega-nil

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions