package ppx_subliner
[@@deriving subliner] and [%%subliner] for Cmdliner
Install
Authors
Maintainers
Sources
v0.2.0.tar.gz
md5=fa1660f136d716d98739e22e91ee6086
sha512=7bde3cbf0f659a3c1d94a91eb2733397a86b712960b1a805acf8194f6155bb6e20e5bfa024fa0119c5e89220f71bdf442068c4ae1b11b226aed3ad6a9a035d5a
README.md.html
[@@deriving subliner] and [%%subliner]
[@@deriving]
plugin to generate Cmdliner sub-command groups, and ppx rewriter to generate Cmdliner evaluations.
Installation
ppx_subliner
can be installed via OCaml Package Manager.
$ opam install ppx_subliner
Usage
Please see the documentation.
Example
type foo = { my_arg : string } [@@deriving subliner]
type params = Foo of foo | Bar | Foobar of { my_arg : string }
[@@deriving subliner]
let handle = function
| Foo { my_arg } -> print_endline ("Foo " ^ my_arg)
| Bar -> print_endline "Bar"
| Foobar { my_arg } -> print_endline ("Foobar" ^ my_arg)
[%%subliner.cmds
eval.params <- handle]
(** Some docs *)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>