Skip to content

Move the PPX to a separate package (?) #338

Closed

Description

@aantron

I'm not sure if it ought to also be ported to ocaml-migrate-parsetree. If so, then port it.

IMO the PPX syntax is much easier to teach than >|= fun blah -> everywhere, so I've been writing new docs in terms of it. However, we can just tell newcomers to do opam install lwt lwt_ppx. Projects that avoid the PPX for whatever reason can do opam install lwt and not have to wait for ports of ppx_tools/ocaml-migrate-parsetree to new versions of OCaml.

On the other hand, maybe we should just make an effort to make sure that those ports don't take a long time. Also, ppx_tools and ocaml-migrate-parsetree are such basic packages, that installing several OPAM packages is likely to pull them in whether they are dependencies of the base lwt or not.

Please let me know any thoughts on this.

Prompted by @avsm in ocaml/opam-repository#8929 (comment).

EDIT: and there is a previous similar (but not identical) request in #266.

Activity

  1. Drup commented on Apr 12, 2017

    @Drup
    Member

    Splitting the ppx inside its own package and porting it to ocaml-migrate-parsetree are two completely independent tasks (and would not be done for the same reasons).

    I have no opinion on the first. Doing the second while we have oasis needs far too many hacks, and it would be easier to just port lwt to something else.

  2. avsm commented on Apr 13, 2017

    @avsm
    Collaborator

    Agree with @Drup -- just moving the package out would be a good first start, since a significant number of packages do not use the ppx extension at all, and it's a pity when the core Lwt package fails to build when ppx is not available.

    My request is specifically motivated by the desire to do more CI testing with development branches of OCaml, and this is the most common reason why ppx is unavailable (due to an AST change). Lwt blocks a very large number of packages from building, but a significant percentage of those do not have a hard ppx dependency.

  3. added this to the 4.0.0 milestone on Apr 13, 2017
  4. modified the milestones: 3.1.0, 4.0.0 on May 12, 2017
  5. modified the milestones: 3.1.0, 3.2.0 on Jul 18, 2017
  6. modified the milestones: 3.2.0, 4.0.0 on Oct 13, 2017
  7. added a commit that references this issue on Dec 22, 2017
    0fa599f
  8. added 6 commits that reference this issue on Mar 24, 2018
    5c94fb6
    77492e7
    2d9ff99
    e75d16c
    73cd62e
    403ca58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions