You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried doing something like #481 (factoring out the PPX) to Camlp4, but it doesn't seem to work. I think archive(syntax ...) ... predicates have to be directly in at least one package that is mentioned on the command line, not only findable through requires predicates. So, we can't use a "proxy" package, like for the PPX. This seems like a bug in Findlib, but I don't think we have time to wait for a fix.
I can think of two or three ways to solve this:
Just move the Camlp4 syntax out, without going through a proxy package phase. We would do this in 4.0.0, and cause breakage.
Duplicate the Camlp4 syntax both lwt.syntax and lwt_camlp4, until 4.0.0. This seems equally as easy/difficult as (1), but would be "softer." I don't know if there would be any difficulties I don't foresee, though.
Maybe it's possible to create a dummy library that has an archive(syntax, ...) predicate, and that will satisfy Findlib. I haven't tried it.
Yeah, I see aws, maybe biocaml, maybe bitcoin, eliom, facebook-sdk, maybe hardcaml, tests of imaplet, iocaml, jitsu, joolog, some examples in js_of_ocaml, lambdoc examples, mongo, ojquery, ojwidgets, rdf, release, riak, themoviedb, usb, xe, xen-disk, xenctrl, xentropyd just in opam. Didn't look into how many of those are presently maintained.
Activity
Port to jbuilder
Port to jbuilder
Port to jbuilder
Port to jbuilder
aantron commentedon Oct 13, 2017
I tried doing something like #481 (factoring out the PPX) to Camlp4, but it doesn't seem to work. I think
archive(syntax ...) ...predicates have to be directly in at least one package that is mentioned on the command line, not only findable throughrequirespredicates. So, we can't use a "proxy" package, like for the PPX. This seems like a bug in Findlib, but I don't think we have time to wait for a fix.I can think of two or three ways to solve this:
lwt.syntaxandlwt_camlp4, until 4.0.0. This seems equally as easy/difficult as (1), but would be "softer." I don't know if there would be any difficulties I don't foresee, though.archive(syntax, ...)predicate, and that will satisfy Findlib. I haven't tried it.@Drup, any suggestions from your experience?
Drup commentedon Oct 20, 2017
I think it's okay, in this case, to do a one time move. Does the camlp4 syntax extension still has many users ?
aantron commentedon Oct 20, 2017
Yeah, I see
aws, maybebiocaml, maybebitcoin,eliom,facebook-sdk, maybehardcaml, tests ofimaplet,iocaml,jitsu,joolog, some examples injs_of_ocaml,lambdocexamples,mongo,ojquery,ojwidgets,rdf,release,riak,themoviedb,usb,xe,xen-disk,xenctrl,xentropydjust in opam. Didn't look into how many of those are presently maintained.Duplicate Camlp4 syntax in new package lwt_camlp4
aantron commentedon Nov 6, 2017
The linked commit duplicates Camlp4 in a
lwt_camlp4package.aantron commentedon Nov 7, 2017
I should note that this approach results in Findlib warnings about duplicate interfaces in
lwtandlwt_camlp4. These are temporary until 4.0.0.Finish factoring out Camlp4 syntax
Finish factoring out Camlp4 syntax