package ppx_seq

  1. Overview
  2. Docs
Seq literals ppx for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

0.3.1.tar.gz
md5=ff156ce09d555d593c80a5b3c0d76dff
sha256=ef9f5fb7a0fdfaecc1f3e7e3d8480a46f90dc013478a4e670633e6495a4b8114
sha512=30cfee3343ec8652b7d0b2722bc538830758be0c9076231d5c5678840b270caff034be21a76fa98125e4f157e73324ade94a0a96eeaf7a22e6804680e7b855d8

README.html

README

ppx_seq
-------

simple unintrusive ppx rewriter that provides easy-to-construct sequence syntax

this rewriter aims to facilitate the use of Seq module, especially after the
excellent additions to it starting from OCaml 4.14


install:

the package is provided in opam.ocaml.org, just issue the following

  $ opam install ppx_seq

you can also build it locally with dune

  $ dune build
  $ dune install

play around with the rewriter in your favourite toplevel like so

  # without project
  $ ocaml $(ocamlfind printppx ppx_seq) [options...]
  # or
  $ ocaml -ppx 'ocamlfind ppx_seq/ppx.exe -as-ppx' [options...]

  (* or, in a toplevel and with ocamlfind *)
  # #require "ppx_seq"

  (* within a project that depends on ppx_seq *)
  # #use_output "dune top"

ocamlfind is only used for convenience, so you can use ppx directly.. e.g.
  -ppx '/usr/lib/ppx_seq/ppx.exe -as-ppx'
without depending on ocamlfind.

and of course, you can depend on it as a rewriter by adding the following to
your dune file
  (executable/library/test...
   ...
   (preprocess (pps ppx_seq)))
..or using ocamlfind, or directly, as both explained above

OCaml

Innovation. Community. Security.