OCamlPro / ocp-indent

Indentation tool for OCaml, to be used from editors like Emacs and Vim.
http://www.typerex.org/ocp-indent.html
Other
200 stars 63 forks source link

Treat the forward pipe (`|>`) as a monadic operator #322

Open nberth opened 1 year ago

nberth commented 1 year ago

Before this change the pipe was treated like standard binary operators:

let f x = x
          |> f

I think it makes more sense to treat it as a monadic:

let f x = x
  |> f