Closed nojb closed 3 years ago
I just gave this a try, but it seems to break 4.02 compat :(
If it makes packaging difficult, it seems acceptable to remove this definition and add the Result.
prefix everywhere.
Or, we could just forget about this headache once and for all and drop 4.02.
@voodoos what do you say? :)
I think we should wait for Merlin's support of old versions of the compiler to be "frozen" and splitted from the latest branch.
If it's urgent I guess we could restrict the version of csexp
required by merlin only when building on 4.02 ?
(Sorry, misclicked on the close button.)
@trefis ?
I just gave this a try, but it seems to break 4.02 compat :(
I think that's because Result.t
is defined here as an abstract type.
If it reexported the constructors, then I believe the build would succeed.
If it's urgent I guess we could restrict the version of csexp required by merlin only when building on 4.02 ?
No need, opam would prevent you from using the new version of csexp on 4.02 anyway.
But I think fixing result is the better choice here.
I'm guessing this is no longer relevant after #17.
Thanks!
Using
Result.result
instead ofResult.t
makes it impossible to use the StdlibResult
when vendoring this package (eg when buildingdune
on Windows), which is a headache.I only took a quick glance at the compatibility package https://github.com/janestreet/result, but it seems to define
Result.t
as well asResult.result
so it looks like doing this renaming would leave everyone happy :)