ocamlPackages.vcaml: fix build with ppxlib > 0.30

This commit is contained in:
Vincent Laporte 2024-04-05 13:17:32 +02:00
parent 540ae8b935
commit b0d981402e
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F
2 changed files with 23 additions and 0 deletions

View File

@ -1221,6 +1221,7 @@ with self;
hash = "sha256-pmEKi24+22T76SzI3RpBmQF7ZrQwlngrpFYLoBdLwe0=";
meta.description = "OCaml bindings for the Neovim API";
propagatedBuildInputs = [ angstrom-async async_extra expect_test_helpers_async faraday jsonaf man_in_the_middle_debugger semantic_version ];
patches = [ ./vcaml.patch ];
};
virtual_dom = janePackage {

View File

@ -0,0 +1,22 @@
diff --git a/src/api_call.ml b/src/api_call.ml
index 66f5083..6e96e95 100644
--- a/src/api_call.ml
+++ b/src/api_call.ml
@@ -112,7 +112,7 @@ include
include T
end)
(Open_on_rhs_intf)
- ()
+ (struct end)
module Or_error = struct
type nonrec 'a t = 'a Or_error.t t
@@ -138,7 +138,7 @@ module Or_error = struct
include T
end)
(Open_on_rhs_intf)
- ()
+ (struct end)
let error_s sexp = Const (Or_error.error_s sexp)
let ignore_m t = map t ~f:ignore