Skip to content

Commit f3c34c2

Browse files
committed
require dune 3.0, use proper mdx stanza
1 parent e3a49e0 commit f3c34c2

File tree

7 files changed

+18
-16
lines changed

7 files changed

+18
-16
lines changed

dune

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
(rule
2-
(alias runtest)
3-
(deps
4-
(:readme README.md))
1+
2+
(mdx
53
(package printbox-html)
6-
(action
7-
(progn
8-
(run ocaml-mdx test %{readme})
9-
(diff? %{readme} %{readme}.corrected))))
4+
(libraries printbox printbox-text printbox-html)
5+
(files README.md))

dune-project

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
(lang dune 2.0)
1+
(lang dune 3.0)
22
(name printbox)
3+
(using mdx 0.2)
34
(generate_opam_files true)
45
(version 0.7)
56
(license "BSD-2-Clause")

printbox-html.opam

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ license: "BSD-2-Clause"
1212
homepage: "https://github.com/c-cube/printbox"
1313
bug-reports: "https://github.com/c-cube/printbox/issues"
1414
depends: [
15-
"dune" {>= "2.0"}
15+
"dune" {>= "3.0"}
1616
"printbox" {= version}
1717
"printbox-text" {= version & with-test}
1818
"odoc" {with-test}
1919
"tyxml" {>= "4.3"}
2020
"mdx" {>= "1.4" & with-test}
21+
"odoc" {with-doc}
2122
]
2223
build: [
23-
["dune" "subst"] {pinned}
24+
["dune" "subst"] {dev}
2425
[
2526
"dune"
2627
"build"

printbox-text.opam

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ license: "BSD-2-Clause"
88
homepage: "https://github.com/c-cube/printbox"
99
bug-reports: "https://github.com/c-cube/printbox/issues"
1010
depends: [
11-
"dune" {>= "2.0"}
11+
"dune" {>= "3.0"}
1212
"printbox" {= version}
1313
"uutf" {>= "1.0"}
1414
"uucp" {>= "2.0"}
1515
"odoc" {with-test}
1616
"mdx" {>= "1.4" & with-test}
17+
"odoc" {with-doc}
1718
]
1819
build: [
19-
["dune" "subst"] {pinned}
20+
["dune" "subst"] {dev}
2021
[
2122
"dune"
2223
"build"

printbox.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ tags: ["print" "box" "table" "tree"]
1010
homepage: "https://github.com/c-cube/printbox"
1111
bug-reports: "https://github.com/c-cube/printbox/issues"
1212
depends: [
13-
"dune" {>= "2.0"}
13+
"dune" {>= "3.0"}
1414
"ocaml" {>= "4.08"}
1515
"odoc" {with-doc}
1616
]
1717
build: [
18-
["dune" "subst"] {pinned}
18+
["dune" "subst"] {dev}
1919
[
2020
"dune"
2121
"build"

test/dune

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
(env
3+
(_ (flags :standard -warn-error -a)))
4+
25
(test
36
(name test_ann_0_3)
47
(modules test_ann_0_3)

test/test1.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module Box_in = struct
7575
let () = print_endline @@ PrintBox_text.to_string b
7676
end
7777

78-
let b =
78+
let _b =
7979
let open PrintBox in
8080
frame @@ record [
8181
("subject", text_with_style Style.bold "announce: printbox 0.3");

0 commit comments

Comments
 (0)