Skip to content
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

Remove lwt_ppx dependency #687

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

Julow
Copy link

@Julow Julow commented Mar 5, 2025

This PR removes the use of lwt_ppx by rewriting let%lwt, match%lwt, etc.. to let*, Lwt.bind and other direct calls to Lwt functions.
Templates are also updated.

This was done using this tool: https://github.com/Julow/lwt_ppx_to_let_syntax/

The first commit runs OCamlformat to remove parasitic diffs in the other commits as the rewrite tool relies on OCamlformat too.

This is a first step toward moving from Lwt to effect-based concurrency. Here are related PRs on the other ocsigen projects: ocsigen/eliom#815 ocsigen/ocsigen-toolkit#236 ocsigen/ocsipersist#6

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure how to update this file so I let the tool run on it. Any guideline on how to setup the right environment to run the update command ?

@Julow Julow changed the title Remove lwt ppx Remove lwt_ppx dependency Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant