Skip to content

Commit 6acc8e4

Browse files
committed
[new release] ocamlformat-lib, ocamlformat and ocamlformat-rpc-lib (0.26.1)
CHANGES: ### Changed - Compatible with OCaml 5.1.0 (ocaml-ppx/ocamlformat#2412, @Julow) The syntax of let-bindings changed sligthly in this version. - Improved ocp-indent compatibility (ocaml-ppx/ocamlformat#2428, @Julow) - \* Removed extra break in constructor declaration with comment (ocaml-ppx/ocamlformat#2429, @Julow) - \* De-indent the `object` keyword in class types (ocaml-ppx/ocamlformat#2425, @Julow) - \* Consistent formatting of arrows in class types (ocaml-ppx/ocamlformat#2422, @Julow) ### Fixed - Fix dropped attributes on a begin-end in a match case (ocaml-ppx/ocamlformat#2421, @Julow) - Fix dropped attributes on begin-end in an if-then-else branch (ocaml-ppx/ocamlformat#2436, @gpetiot) - Fix non-stabilizing comments before a functor type argument (ocaml-ppx/ocamlformat#2420, @Julow) - Fix crash caused by module types with nested `with module` (ocaml-ppx/ocamlformat#2419, @Julow) - Fix ';;' formatting between doc-comments and toplevel directives (ocaml-ppx/ocamlformat#2432, @gpetiot)
1 parent 5222bba commit 6acc8e4

File tree

3 files changed

+175
-0
lines changed
  • packages
    • ocamlformat-lib/ocamlformat-lib.0.26.1
    • ocamlformat-rpc-lib/ocamlformat-rpc-lib.0.26.1
    • ocamlformat/ocamlformat.0.26.1

3 files changed

+175
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
opam-version: "2.0"
2+
synopsis: "OCaml Code Formatter"
3+
description:
4+
"OCamlFormat is a tool to automatically format OCaml code in a uniform style."
5+
maintainer: [
6+
"Guillaume Petiot <[email protected]>"
7+
"Jules Aguillon <[email protected]>"
8+
"Emile Trotignon <[email protected]>"
9+
]
10+
authors: [
11+
"Josh Berdine <[email protected]>"
12+
"Hugo Heuzard <[email protected]>"
13+
"Etienne Millon <[email protected]>"
14+
"Guillaume Petiot <[email protected]>"
15+
"Jules Aguillon <[email protected]>"
16+
]
17+
homepage: "https://github.com/ocaml-ppx/ocamlformat"
18+
bug-reports: "https://github.com/ocaml-ppx/ocamlformat/issues"
19+
depends: [
20+
"ocaml" {>= "4.08"}
21+
"alcotest" {with-test & >= "1.3.0"}
22+
"base" {>= "v0.12.0"}
23+
"dune" {>= "2.8"}
24+
"dune-build-info"
25+
"either"
26+
"fix"
27+
"fpath"
28+
"menhir" {>= "20201216"}
29+
"menhirLib" {>= "20201216"}
30+
"menhirSdk" {>= "20201216"}
31+
"ocaml-version" {>= "3.5.0"}
32+
"ocamlformat-rpc-lib" {with-test & = version}
33+
"ocp-indent" {with-test = "false" & >= "1.8.0" | with-test & >= "1.8.1"}
34+
"stdio"
35+
"uuseg" {>= "10.0.0"}
36+
"uutf" {>= "1.0.1"}
37+
"csexp" {>= "1.4.0"}
38+
"astring"
39+
"result"
40+
"camlp-streams"
41+
"odoc" {with-doc}
42+
]
43+
build: [
44+
["dune" "subst"] {dev}
45+
[
46+
"dune"
47+
"build"
48+
"-p"
49+
name
50+
"-j"
51+
jobs
52+
"@install"
53+
"@runtest" {with-test}
54+
"@doc" {with-doc}
55+
]
56+
]
57+
dev-repo: "git+https://github.com/ocaml-ppx/ocamlformat.git"
58+
# OCamlFormat is distributed under the MIT license. Parts of the OCaml library are vendored for OCamlFormat and distributed under their original LGPL 2.1 license
59+
license: ["MIT" "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"]
60+
url {
61+
src:
62+
"https://github.com/ocaml-ppx/ocamlformat/releases/download/0.26.1/ocamlformat-0.26.1.tbz"
63+
checksum: [
64+
"sha256=da006e427f15b9ec612fb808d446599bd9b7c3ee25abeb3d555747a70d74c6d7"
65+
"sha512=b7413f8dc47ba3a2372e89d59cae54f9a602ab81e31cd14ed986a831111080b79a5a3cc45dac04d8ffae5054c35bf29fe9559f145c76c87a30e191ed5400942a"
66+
]
67+
}
68+
x-commit-hash: "6734dfc1992eb782f0a936ce3cd7c78b7c1d39d3"
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
opam-version: "2.0"
2+
synopsis: "Auto-formatter for OCaml code (RPC mode)"
3+
description:
4+
"OCamlFormat is a tool to automatically format OCaml code in a uniform style. This package defines a RPC interface to OCamlFormat"
5+
maintainer: [
6+
"Guillaume Petiot <[email protected]>"
7+
"Jules Aguillon <[email protected]>"
8+
"Emile Trotignon <[email protected]>"
9+
]
10+
authors: [
11+
"Josh Berdine <[email protected]>"
12+
"Hugo Heuzard <[email protected]>"
13+
"Etienne Millon <[email protected]>"
14+
"Guillaume Petiot <[email protected]>"
15+
"Jules Aguillon <[email protected]>"
16+
]
17+
license: "MIT"
18+
homepage: "https://github.com/ocaml-ppx/ocamlformat"
19+
bug-reports: "https://github.com/ocaml-ppx/ocamlformat/issues"
20+
depends: [
21+
"dune" {>= "2.8"}
22+
"ocaml" {>= "4.08"}
23+
"csexp" {>= "1.4.0"}
24+
"odoc" {with-doc}
25+
]
26+
build: [
27+
["dune" "subst"] {dev}
28+
[
29+
"dune"
30+
"build"
31+
"-p"
32+
name
33+
"-j"
34+
jobs
35+
"@install"
36+
"@runtest" {with-test}
37+
"@doc" {with-doc}
38+
]
39+
]
40+
dev-repo: "git+https://github.com/ocaml-ppx/ocamlformat.git"
41+
url {
42+
src:
43+
"https://github.com/ocaml-ppx/ocamlformat/releases/download/0.26.1/ocamlformat-0.26.1.tbz"
44+
checksum: [
45+
"sha256=da006e427f15b9ec612fb808d446599bd9b7c3ee25abeb3d555747a70d74c6d7"
46+
"sha512=b7413f8dc47ba3a2372e89d59cae54f9a602ab81e31cd14ed986a831111080b79a5a3cc45dac04d8ffae5054c35bf29fe9559f145c76c87a30e191ed5400942a"
47+
]
48+
}
49+
x-commit-hash: "6734dfc1992eb782f0a936ce3cd7c78b7c1d39d3"
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
opam-version: "2.0"
2+
synopsis: "Auto-formatter for OCaml code"
3+
description: """
4+
**ocamlformat** is a code formatter for OCaml. It comes with opinionated default settings but is also fully customizable to suit your coding style.
5+
6+
- **Profiles:** ocamlformat offers profiles we predefined formatting configurations. Profiles include `default`, `ocamlformat`, `janestreet`.
7+
- **Configurable:** Users can change the formatting profile and configure every option in their `.ocamlformat` configuration file.
8+
- **Format Comments:** ocamlformat can format comments, docstrings, and even code blocks in your comments.
9+
- **RPC:** ocamlformat provides an RPC server that can be used by other tools to easily format OCaml Code."""
10+
maintainer: [
11+
"Guillaume Petiot <[email protected]>"
12+
"Jules Aguillon <[email protected]>"
13+
"Emile Trotignon <[email protected]>"
14+
]
15+
authors: [
16+
"Josh Berdine <[email protected]>"
17+
"Hugo Heuzard <[email protected]>"
18+
"Etienne Millon <[email protected]>"
19+
"Guillaume Petiot <[email protected]>"
20+
"Jules Aguillon <[email protected]>"
21+
]
22+
homepage: "https://github.com/ocaml-ppx/ocamlformat"
23+
bug-reports: "https://github.com/ocaml-ppx/ocamlformat/issues"
24+
depends: [
25+
"ocaml" {>= "4.08"}
26+
"cmdliner" {with-test = "false" & >= "1.1.0" | with-test & >= "1.2.0"}
27+
"dune" {>= "2.8"}
28+
"ocamlformat-lib" {= version}
29+
"ocamlformat-rpc-lib" {with-test & = version}
30+
"re" {>= "1.10.3"}
31+
"odoc" {with-doc}
32+
]
33+
build: [
34+
["dune" "subst"] {dev}
35+
[
36+
"dune"
37+
"build"
38+
"-p"
39+
name
40+
"-j"
41+
jobs
42+
"@install"
43+
"@runtest" {with-test}
44+
"@doc" {with-doc}
45+
]
46+
]
47+
dev-repo: "git+https://github.com/ocaml-ppx/ocamlformat.git"
48+
# OCamlFormat is distributed under the MIT license. Parts of the OCaml library are vendored for OCamlFormat and distributed under their original LGPL 2.1 license
49+
license: ["MIT" "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"]
50+
url {
51+
src:
52+
"https://github.com/ocaml-ppx/ocamlformat/releases/download/0.26.1/ocamlformat-0.26.1.tbz"
53+
checksum: [
54+
"sha256=da006e427f15b9ec612fb808d446599bd9b7c3ee25abeb3d555747a70d74c6d7"
55+
"sha512=b7413f8dc47ba3a2372e89d59cae54f9a602ab81e31cd14ed986a831111080b79a5a3cc45dac04d8ffae5054c35bf29fe9559f145c76c87a30e191ed5400942a"
56+
]
57+
}
58+
x-commit-hash: "6734dfc1992eb782f0a936ce3cd7c78b7c1d39d3"

0 commit comments

Comments
 (0)