Last active
January 2, 2022 15:10
-
-
Save Leonidas-from-XIV/38a11ef3b96e1c84b8ff36bc9d3dc6c2 to your computer and use it in GitHub Desktop.
Using Lwt with ppx_let instead of ppx_lwt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Let_syntax = struct | |
let return = Lwt.return | |
let (>>=) = Lwt.Infix.(>>=) | |
let (>>|) = Lwt.Infix.(>|=) | |
module Let_syntax = struct | |
let bind m ~f = Lwt.bind m f | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment