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.12.0.tar.gz
sha256=ce170de4ef5c8d7529f069dab794a4f64cce0d7de472659f23fcc58ba982482d
md5=2d7e55543768d11cb83fce48272e54d8

Description

Part of the Jane Street's PPX rewriters collection.

Published: 01 Mar 2019

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 (3)

  1. ppxlib >= "0.5.0" & < "0.9.0"
  2. dune >= "1.5.1"
  3. ocaml >= "4.04.2"

Dev Dependencies

None

Used by (2)

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

Conflicts

None

OCaml

Innovation. Community. Security.