-
Notifications
You must be signed in to change notification settings - Fork 56
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
#815
base: master
Are you sure you want to change the base?
Conversation
b9f9628
to
d46cc74
Compare
src/lib/eliom_form.eliom
Outdated
let%lwt () = f v in | ||
Lwt.return_true | ||
| Some v -> let* () = f v in | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
src/lib/eliom_shared.eliom
Outdated
ignore (React.S.retain s (fun () -> ignore effectful_signal)); | ||
Lwt.return_unit); | ||
let* ss = th in | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be a white line after many let*. And indentation is different. Did you ocamlformat everything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly ocamlformat doesn't seem to remove those newlines. I've updated by hand.
22271f5
to
a52f88a
Compare
a52f88a
to
a5ff4f1
Compare
This PR proposes to get rid of the
%lwt
syntax fromlwt_ppx
in favor of theLwt_syntax
.It is based on #814, please consider only the last commit.
This is join work with @Julow (who wrote the tool making the automatic changes)
Most of the changes has been done automatically using the prototype tool
here. This is the reason why
the PR is one big commit.
This is a first step toward moving from Lwt to effect-based concurrency. The
idea is to homogenize the syntax in order to have less cases to handle (again
by an automatic tool).
This is also an independent contribution, as it removes one dependency and one
preprocessor. Which can be considered a win by itself.