Skip to content

Commit 6092b78

Browse files
author
Nathan Rebours
committed
[new release] ppxlib and ppxlib-tools (0.37.0)
CHANGES: ### 5.4 Support - Add initial OCaml 5.4 support (ocaml-ppx/ppxlib#570, @patricoferris, @NathanReb) ### Other Changes - Add `Longident.to/of_compiler` to astlib to simplify maintenance of ppx-es that interacts with other parts of the compiler-libs such as the type checker. (ocaml-ppx/ppxlib#603, @NathanReb) - Fix a bug where some infix operators such as `mod` would be printed as raw identifiers by our `Pprintast`. (ocaml-ppx/ppxlib#601, @NathanReb) - Fix 5.2 -> 5.3 migration of constants. Those used to always have a `none` location which can lead to unhelpful error messages. (ocaml-ppx/ppxlib#569, @NathanReb) - Add a new context-free rule type that replaces AST nodes that have the registered attributes attached to them. (ocaml-ppx/ppxlib#574, @Skepfyr) - Allow users to derive code from module bindings and module declarations (ocaml-ppx/ppxlib#576, @patricoferris) - Expose `Ppxlib.Location.Error.t = Astlib.Location.Error.t` (ocaml-ppx/ppxlib#593, @ceastlund) - Add `@@@ppxlib.inline.end`, deprecate `@@@deriving.end`. (ocaml-ppx/ppxlib#594, @ceastlund) - Clean the AST of any ppxlib migration attributes whenever printing using Pretty_print mode and the use_compiler_pp flag. (ocaml-ppx/ppxlib#598, @patricoferris) - Add custom printer support to `pp_ast` functions via the `?printer` config parameter. (ocaml-ppx/ppxlib#526, @pedrobslisboa)
1 parent 1b2e165 commit 6092b78

File tree

2 files changed

+111
-0
lines changed
  • packages
    • ppxlib-tools/ppxlib-tools.0.37.0
    • ppxlib/ppxlib.0.37.0

2 files changed

+111
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
opam-version: "2.0"
2+
synopsis: "Tools for PPX users and authors"
3+
description: """
4+
Set of helper tools for PPX users and authors.
5+
6+
ppxlib-pp-ast: Command line tool to pretty print OCaml ASTs in a human readable
7+
format."""
8+
maintainer: ["[email protected]"]
9+
authors: ["Jane Street Group, LLC <[email protected]>"]
10+
license: "MIT"
11+
homepage: "https://github.com/ocaml-ppx/ppxlib"
12+
doc: "https://ocaml-ppx.github.io/ppxlib/"
13+
bug-reports: "https://github.com/ocaml-ppx/ppxlib/issues"
14+
depends: [
15+
"dune" {>= "3.8"}
16+
"ocaml" {>= "4.08.0"}
17+
"ppxlib" {= version}
18+
"cmdliner" {>= "1.3.0"}
19+
"yojson" {>= "2.2.2"}
20+
"cinaps" {with-test & >= "v0.12.1"}
21+
"odoc" {with-doc}
22+
]
23+
build: [
24+
["dune" "subst"] {dev}
25+
[
26+
"dune"
27+
"build"
28+
"-p"
29+
name
30+
"-j"
31+
jobs
32+
"@install"
33+
"@runtest" {with-test}
34+
"@doc" {with-doc}
35+
]
36+
]
37+
dev-repo: "git+https://github.com/ocaml-ppx/ppxlib.git"
38+
x-maintenance-intent: ["(latest)"]
39+
url {
40+
src:
41+
"https://github.com/ocaml-ppx/ppxlib/releases/download/0.37.0/ppxlib-0.37.0.tbz"
42+
checksum: [
43+
"sha256=2e223837e7cecc3bc84a432432c0a72f4e1d5be9165c9c33772f156db85db0b3"
44+
"sha512=78c62c6de7a641b950de9b4b744841c8823918c545046693e291077adfcd069a812094c11d8d51f792c0b5f340307d38f452ff0a92520df63ed17a3ca9922e2e"
45+
]
46+
}
47+
x-commit-hash: "df39675d8ff0c3490ece8157c681691cfb67fdaf"

packages/ppxlib/ppxlib.0.37.0/opam

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
opam-version: "2.0"
2+
synopsis: "Standard infrastructure for ppx rewriters"
3+
description: """
4+
Ppxlib is the standard infrastructure for ppx rewriters
5+
and other programs that manipulate the in-memory representation of
6+
OCaml programs, a.k.a the "Parsetree".
7+
8+
It also comes bundled with two ppx rewriters that are commonly used to
9+
write tools that manipulate and/or generate Parsetree values;
10+
`ppxlib.metaquot` which allows to construct Parsetree values using the
11+
OCaml syntax directly and `ppxlib.traverse` which provides various
12+
ways of automatically traversing values of a given type, in particular
13+
allowing to inject a complex structured value into generated code.
14+
"""
15+
maintainer: ["[email protected]"]
16+
authors: ["Jane Street Group, LLC <[email protected]>"]
17+
license: "MIT"
18+
homepage: "https://github.com/ocaml-ppx/ppxlib"
19+
doc: "https://ocaml-ppx.github.io/ppxlib/"
20+
bug-reports: "https://github.com/ocaml-ppx/ppxlib/issues"
21+
depends: [
22+
"dune" {>= "3.8"}
23+
"ocaml" {>= "4.08.0" & < "5.5.0"}
24+
"ocaml-compiler-libs" {>= "v0.11.0"}
25+
"ppx_derivers" {>= "1.0"}
26+
"sexplib0" {>= "v0.12"}
27+
"sexplib0" {with-test & >= "v0.15"}
28+
"stdlib-shims"
29+
"ocamlfind" {with-test}
30+
"re" {with-test & >= "1.9.0"}
31+
"cinaps" {with-test & >= "v0.12.1"}
32+
"ocamlformat" {with-dev-setup & = "0.26.2"}
33+
"odoc" {with-doc}
34+
]
35+
conflicts: [
36+
"ocaml-migrate-parsetree" {< "2.0.0"}
37+
"ocaml-base-compiler" {= "5.1.0~alpha1"}
38+
"ocaml-variants" {= "5.1.0~alpha1+options"}
39+
]
40+
build: [
41+
["dune" "subst"] {dev}
42+
[
43+
"dune"
44+
"build"
45+
"-p"
46+
name
47+
"-j"
48+
jobs
49+
"@install"
50+
"@runtest" {with-test}
51+
"@doc" {with-doc}
52+
]
53+
]
54+
dev-repo: "git+https://github.com/ocaml-ppx/ppxlib.git"
55+
x-maintenance-intent: ["(latest)"]
56+
url {
57+
src:
58+
"https://github.com/ocaml-ppx/ppxlib/releases/download/0.37.0/ppxlib-0.37.0.tbz"
59+
checksum: [
60+
"sha256=2e223837e7cecc3bc84a432432c0a72f4e1d5be9165c9c33772f156db85db0b3"
61+
"sha512=78c62c6de7a641b950de9b4b744841c8823918c545046693e291077adfcd069a812094c11d8d51f792c0b5f340307d38f452ff0a92520df63ed17a3ca9922e2e"
62+
]
63+
}
64+
x-commit-hash: "df39675d8ff0c3490ece8157c681691cfb67fdaf"

0 commit comments

Comments
 (0)