-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathppx_partial.opam
More file actions
47 lines (44 loc) · 1.25 KB
/
ppx_partial.opam
File metadata and controls
47 lines (44 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis:
"Syntax for a partial application of functions that omits any single argument"
description: """
This provides a syntax `f e1 __ e3` that means `(fun x -> f e1 x e3)`,
except that `e1` and `e3` are evaluated exactly once. Only one `__` is
supported.
This can be convenient in pipelines or to build arguments for `List.map`
or any places that need single-argument functions.
As a slight generalization, `__.record_field` and `Sum_constructor __`
allow shortening `(fun x -> x.record_field)` and `(fun x -> Sum_constructor x)`.
"""
maintainer: ["Valentin Gatien-Baron"]
authors: ["Valentin Gatien-Baron"]
license: "ISC"
tags: ["syntax" "ppx"]
homepage: "https://github.com/v-gb/ppx_partial"
bug-reports: "https://github.com/v-gb/ppx_partial/issues"
depends: [
"ppxlib" {>= "0.32.1"}
"ocaml" {>= "4.14.0"}
"dune" {>= "3.15"}
"base" {with-test}
"ppx_pipebang" {with-test}
"ppx_inline_test" {with-test}
"ppx_assert" {with-test}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/v-gb/ppx_partial.git"