ocamlPackages.pythonlib: 0.15.0 → 0.15.1
This commit is contained in:
parent
7ab9e126b3
commit
3b1cb06732
|
@ -826,11 +826,11 @@ with self;
|
|||
|
||||
pythonlib = janePackage {
|
||||
pname = "pythonlib";
|
||||
hash = "0p88vmp19zmr0r58dz6sawsmbn4yi2vyymad2c82kp93kg66nm1v";
|
||||
version = "0.15.1";
|
||||
hash = "sha256-j8WXVTEiBmHtoTjkbnIh31vC4IghfAMaEL19nDLx3mc=";
|
||||
meta.description = "A library to help writing wrappers around ocaml code for python";
|
||||
patches = lib.optional (lib.versionAtLeast ocaml.version "4.13") ./pythonlib.patch;
|
||||
buildInputs = [ ppx_optcomp ];
|
||||
propagatedBuildInputs = [ ppx_expect ppx_let ppx_python stdio typerep ];
|
||||
meta.broken = lib.versionAtLeast ocaml.version "4.14";
|
||||
};
|
||||
|
||||
re2 = janePackage {
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
diff --git a/src/type.ml b/src/type.ml
|
||||
index 8a9e648..3f3b0e9 100644
|
||||
--- a/src/type.ml
|
||||
+++ b/src/type.ml
|
||||
@@ -31,12 +31,12 @@ let of_type_desc type_desc ~env =
|
||||
| Tunivar _ -> Or_error.error_string "not handled: Tunivar"
|
||||
| Tvariant _ -> Or_error.error_string "not handled: Tvariant"
|
||||
| Tnil -> Or_error.error_string "not handled: Tnil"
|
||||
- | Tobject (_, _) -> Or_error.error_string "not handled: Tobject"
|
||||
- | Tfield (_, _, _, _) -> Or_error.error_string "not handled: Tfield"
|
||||
- | Tpackage (_, _, _) -> Or_error.error_string "not handled: Tpackage"
|
||||
- | Tpoly (_, _) -> Or_error.error_string "not handled: Tpoly"
|
||||
+ | Tobject _ -> Or_error.error_string "not handled: Tobject"
|
||||
+ | Tfield _ -> Or_error.error_string "not handled: Tfield"
|
||||
+ | Tpackage _ -> Or_error.error_string "not handled: Tpackage"
|
||||
+ | Tpoly _ -> Or_error.error_string "not handled: Tpoly"
|
||||
| Tlink e -> walk e.desc
|
||||
- | Tsubst e -> walk e.desc
|
||||
+ | Tsubst (e, _) -> walk e.desc
|
||||
| Ttuple es ->
|
||||
let%bind tuple = List.map es ~f:(fun e -> walk e.desc) |> Or_error.all in
|
||||
(match tuple with
|
Loading…
Reference in a new issue