Skip to content

Commit

Permalink
Merge pull request #5 from mbarbin/err
Browse files Browse the repository at this point in the history
Refactor err & err-cli
  • Loading branch information
mbarbin authored Sep 3, 2024
2 parents 2ebf451 + fa51ffd commit 4b2744b
Show file tree
Hide file tree
Showing 52 changed files with 1,566 additions and 1,459 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
# janestreet-bleeding-external: https://github.com/janestreet/opam-repository.git#external-packages

- name: Install dependencies
run: opam install . --deps-only --with-doc --with-test
run: opam install . --deps-only --with-doc --with-test --with-dev-setup

- name: Build
run: opam exec -- dune build @all @lint
Expand Down
11 changes: 11 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## 0.0.3 (2024-09-03)

### Changed

- Refactor `Err` - undocumented changes while we're stabilizing.
- Refactor the separation between `Err` and `Err_handler`. Keep only the cli part separate and rename it `err-cli`.

### Fixed

- Fix some unintended behavior related to raising and catching errors with `err0` and `erro-handler`. Added tests to cover and characterize different use cases.

## 0.0.2 (2024-08-23)

### Changed
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ lint:

.PHONY: deps
deps:
opam install . --deps-only --with-doc --with-test
opam install . --deps-only --with-doc --with-test --with-dev-setup

.PHONY: doc
doc:
Expand Down
13 changes: 7 additions & 6 deletions commandlang-tests.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ bug-reports: "https://github.com/mbarbin/commandlang/issues"
depends: [
"dune" {>= "3.16"}
"ocaml" {>= "5.2"}
"ocamlformat" {with-dev-setup & = "0.26.2"}
"base" {>= "v0.17" & < "v0.18"}
"bisect_ppx" {dev & >= "2.8.3"}
"bisect_ppx" {with-dev-setup & >= "2.8.3"}
"climate" {= "0.0.1~preview-0.1"}
"cmdliner" {= "1.3.0"}
"commandlang" {= version}
Expand All @@ -20,24 +21,24 @@ depends: [
"commandlang-to-cmdliner" {= version}
"core" {>= "v0.17" & < "v0.18"}
"core_unix" {>= "v0.17" & < "v0.18"}
"err0" {= version}
"err0-handler" {= version}
"err" {= version}
"err-cli" {= version}
"expect_test_helpers_core" {>= "v0.17" & < "v0.18"}
"loc0" {>= "0.1.0"}
"loc" {>= "0.2.0"}
"mdx" {>= "2.4"}
"ppx_compare" {>= "v0.17" & < "v0.18"}
"ppx_enumerate" {>= "v0.17" & < "v0.18"}
"ppx_expect" {>= "v0.17" & < "v0.18"}
"ppx_hash" {>= "v0.17" & < "v0.18"}
"ppx_here" {>= "v0.17" & < "v0.18"}
"ppx_js_style" {dev & >= "v0.17" & < "v0.18"}
"ppx_js_style" {with-dev-setup & >= "v0.17" & < "v0.18"}
"ppx_let" {>= "v0.17" & < "v0.18"}
"ppx_sexp_conv" {>= "v0.17" & < "v0.18"}
"ppx_sexp_value" {>= "v0.17" & < "v0.18"}
"ppxlib" {>= "0.33"}
"sherlodoc" {with-doc & >= "0.2"}
"stdio" {>= "v0.17" & < "v0.18"}
"stdune" {>= "3.16"}
"sherlodoc" {with-doc & >= "0.2"}
"odoc" {with-doc}
]
build: [
Expand Down
8 changes: 4 additions & 4 deletions commandlang-to-base.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ bug-reports: "https://github.com/mbarbin/commandlang/issues"
depends: [
"dune" {>= "3.16"}
"ocaml" {>= "5.2"}
"ocamlformat" {with-dev-setup & = "0.26.2"}
"base" {>= "v0.17" & < "v0.18"}
"bisect_ppx" {dev & >= "2.8.3"}
"bisect_ppx" {with-dev-setup & >= "2.8.3"}
"commandlang" {= version}
"core" {>= "v0.17" & < "v0.18"}
"err0" {= version}
"err0-handler" {= version}
"err" {= version}
"ppx_compare" {>= "v0.17" & < "v0.18"}
"ppx_enumerate" {>= "v0.17" & < "v0.18"}
"ppx_expect" {>= "v0.17" & < "v0.18"}
"ppx_hash" {>= "v0.17" & < "v0.18"}
"ppx_here" {>= "v0.17" & < "v0.18"}
"ppx_js_style" {dev & >= "v0.17" & < "v0.18"}
"ppx_js_style" {with-dev-setup & >= "v0.17" & < "v0.18"}
"ppx_let" {>= "v0.17" & < "v0.18"}
"ppx_sexp_conv" {>= "v0.17" & < "v0.18"}
"ppx_sexp_value" {>= "v0.17" & < "v0.18"}
Expand Down
8 changes: 4 additions & 4 deletions commandlang-to-climate.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ bug-reports: "https://github.com/mbarbin/commandlang/issues"
depends: [
"dune" {>= "3.16"}
"ocaml" {>= "5.2"}
"bisect_ppx" {dev & >= "2.8.3"}
"ocamlformat" {with-dev-setup & = "0.26.2"}
"bisect_ppx" {with-dev-setup & >= "2.8.3"}
"climate" {= "0.0.1~preview-0.1"}
"commandlang" {= version}
"err0" {= version}
"err0-handler" {= version}
"ppx_js_style" {dev & >= "v0.17" & < "v0.18"}
"err" {= version}
"ppx_js_style" {with-dev-setup & >= "v0.17" & < "v0.18"}
"odoc" {with-doc}
]
build: [
Expand Down
8 changes: 4 additions & 4 deletions commandlang-to-cmdliner.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ bug-reports: "https://github.com/mbarbin/commandlang/issues"
depends: [
"dune" {>= "3.16"}
"ocaml" {>= "5.2"}
"bisect_ppx" {dev & >= "2.8.3"}
"ocamlformat" {with-dev-setup & = "0.26.2"}
"bisect_ppx" {with-dev-setup & >= "2.8.3"}
"cmdliner" {= "1.3.0"}
"commandlang" {= version}
"err0" {= version}
"err0-handler" {= version}
"ppx_js_style" {dev & >= "v0.17" & < "v0.18"}
"err" {= version}
"ppx_js_style" {with-dev-setup & >= "v0.17" & < "v0.18"}
"odoc" {with-doc}
]
build: [
Expand Down
5 changes: 3 additions & 2 deletions commandlang.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ bug-reports: "https://github.com/mbarbin/commandlang/issues"
depends: [
"dune" {>= "3.16"}
"ocaml" {>= "5.2"}
"bisect_ppx" {dev & >= "2.8.3"}
"ppx_js_style" {dev & >= "v0.17" & < "v0.18"}
"ocamlformat" {with-dev-setup & = "0.26.2"}
"bisect_ppx" {with-dev-setup & >= "2.8.3"}
"ppx_js_style" {with-dev-setup & >= "v0.17" & < "v0.18"}
"odoc" {with-doc}
]
build: [
Expand Down
1 change: 1 addition & 0 deletions doc/docs/reference/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(mdx
(package commandlang-tests)
(deps
(package commandlang)
(glob_files *.txt))
Expand Down
1 change: 1 addition & 0 deletions doc/docs/tutorials/getting-started/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(mdx
(package commandlang-tests)
(deps
(package commandlang)
my-calculator
Expand Down
Loading

0 comments on commit 4b2744b

Please sign in to comment.