Re: [Caml-list] [Camlp4][trivial ?] Anonymous bind (for monads)

Gabriel Kerneis
2007-07-31T17:02:39Z

[-- Attachment #1: Type: text/plain, Size: 374 bytes --]

Le Tue, 31 Jul 2007 18:55:05 +0200, Gabriel Kerneis
<gabriel.kerneis@enst.fr> a écrit :
> ~/ocaml/camlp4% cat test_bind.ml
> let r = (Lwt_unix.sleep 5) foo (print_endline "42")

Careful readers will notice that I should have had written:
let r = (Lwt_unix.sleep 5) foo (Lwt.return (print_endline "42"))

But it doesn't change anything, of course.

--
Gabriel

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]