package ppx_pipebang

  1. Overview
  2. Docs
A ppx rewriter that inlines reverse application operators `|>` and `|!`

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_pipebang-v0.10.0.tar.gz
sha256=2be9916dea7bdf69b6109eaafaea8fc678fdd2aabd04e70398de3377bd9967d8
md5=feab83b408f4f952da9d7b257e637276

Description

Part of the Jane Street's PPX rewriters collection.

Published: 15 Dec 2017

README

ppx_pipebang

A ppx rewriter that inlines reverse application operators |> and |!.

ppx_pipebang rewrites x |> f and x |! f as f x, regardless of whether |> and |! have been redefined.

Do not use |! in new code, it is there only for backwards compatibility.

This inlining is mostly done for historical reasons but it also allows f to have optional arguments (like Option.value_exn).

Dependencies (6)

  1. ocaml-migrate-parsetree >= "0.4" & < "2.0.0"
  2. jbuilder >= "1.0+beta12"
  3. ppx_metaquot >= "v0.10" & < "v0.11"
  4. ppx_driver >= "v0.10" & < "v0.11"
  5. ppx_core >= "v0.10" & < "v0.11"
  6. ocaml >= "4.04.1"

Dev Dependencies

None

Used by (2)

  1. ppx_jane = "v0.10.0"
  2. ppx_partial

Conflicts

None

OCaml

Innovation. Community. Security.