Skip to content

Jbuilder + lwt_ppx #401

Closed
Closed

Description

@bluddy

Is there a way to use lwt.ppx with jbuilder? If not, what's required?

Activity

  1. aantron commented on Jun 13, 2017

    @aantron
    Collaborator

    Yes, but for now you have to pin master. IIRC:

    opam pin add --dev-repo lwt
    

    Here is an example jbuild for using the PPX:

    (jbuild_version 1)
    
    (executable
     ((name hello_world)
      (libraries (lwt.unix))
      (preprocess
       (pps (lwt.ppx)))))
    

    We plan to publish the jbuilder-based Lwt in OPAM in the next release, 3.1.0, ETA mid-late July.

    Let me know if you have any trouble.

  2. bluddy commented on Jun 13, 2017

    @bluddy
    Author

    Looks like the master-based version is incompatible with Lambda-Soup, so I'll have to make do without ppx for now :(

  3. aantron commented on Jun 13, 2017

    @aantron
    Collaborator

    Heya, I believe I already know what the error is (found by @andrewray). I've opened the above linked issue in Markup.ml (dependency of Lambda Soup) for dealing with it. I'll try to get a release of Markup out today. It should become installable tomorrow, depending on when it is merged into OPAM.

  4. added a commit that references this issue on Jun 14, 2017
  5. aantron commented on Jun 14, 2017

    @aantron
    Collaborator

    😱 I'm sorry to suggest pinning yet another package, but Markup.ml master should now fix compatibility of Lambda Soup with Lwt (see above commit). However, I'm also preparing a release right now, so maybe you won't have to :)

  6. bluddy commented on Jun 14, 2017

    @bluddy
    Author

    Thanks very much!

  7. aantron commented on Jun 14, 2017

    @aantron
    Collaborator

    Ok, ocaml/opam-repository#9499. Thanks for giving me a kick to finally release it.

  8. aantron commented on Jun 14, 2017

    @aantron
    Collaborator

    Alright, Markup.ml is in and downloadable. I'm closing this issue, but feel free to comment and/or reopen if there are any further problems on the Lwt side.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions