Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Camlp4][trivial ?] Anonymous bind (for monads)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Gabriel Kerneis <gabriel.kerneis@e...>
Subject: Re: [Caml-list] [Camlp4][trivial ?] Anonymous bind (for monads)
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