-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 2.6.0 between Oct. 15 and Nov. 1 #275
Comments
@aantron After upgrade from 2.5.2 to 2.6.0 we get an issue at compile step w/ our own For example:
So, if you try to compile, you will get an error:
PS: now we just pinned lwt to 2.5.2. |
Argh. Are you using OCaml 4.02, or >= 4.03? The I guess there are several ways to solve this. Here are some suggestions:
There are many other approaches, such as simply renaming your @c-cube if you have other suggestions :) |
Well first, I always use the |
@tte Let me know if you'd like this to be resolved on the Lwt side :) |
Thank you for your suggestions. I don't think that a new flag is a right decision. I think I should handle this on my side by factor out or trivial renaming. I'm using Ocaml
type ('a, 'b) t =
| Ok of 'a
| Error of 'b
val map: ('a -> 'b) -> ('a, 'c) t -> ('b, 'c) t
val bind: ('a, 'c) t -> ('a -> ('b, 'c) t) -> ('b, 'c) t
val (>>=): ('a, 'c) t -> ('a -> ('b, 'c) t) -> ('b, 'c) t
val return: 'a -> ('a, 'b) t
val force: ('a, 'b) t -> 'a
val combine: ('a, 'b) t list -> ('a list, 'b) t
val to_value: ('a, 'b) t -> ('a -> 'c) -> ('b -> 'c) -> 'c
val to_lwt: ('a, string) t -> 'a Lwt.t I tried to suppress original module with $ export OCAMLFIND_IGNORE_DUPS_IN=/Users/.../.opam/4.03.0/lib/result But it only clears a warning messages. Sorry, I'm pretty new to Ocaml and I don't understand why my own module with the same type haven't compiled yet. First thing - cause I have already compiled original module. But I'm using I will check some tricks with options and then package my module or just refact. |
The easiest thing may be to rename your module to, say, If you want to go the route of substituting your own package for
This may be too annoying.
|
This will be the last release to support 4.01. It will include the new
Lwt_result
, the many bugfixes from the last few months, and whatever additional minor issues can get fixed soon. I probably won't have time to get the MSVC build working in AppVeyor.2.7.0 will probably be released soon after. With
ocaml.deprecated
, minor breaking changes (e.g. [1], [2]) should be "safer" to make in minor releases, i.e. 2.8.0 onward, with sufficient advance warning.Big changes such as dropping Camlp4, dropping modules (
Lwt_pqueue
), or changing the packaging are left for a hypothetical 3.0.0. I have no plans to actually do them, but I would like to.The text was updated successfully, but these errors were encountered: