update definition of Deferred.t

It is now Async_kernel.Deferred0.t.

Fixes #137
This commit is contained in:
Jeremie Dimino 2015-08-17 10:19:28 +01:00
parent d1419acbb7
commit 2a8762c0f7
1 changed files with 9 additions and 2 deletions

View File

@ -478,8 +478,15 @@ let () =
);
enabled = UTop.auto_run_async;
} in
Hashtbl.add rewrite_rules (Longident.parse "Async_core.Ivar.Deferred.t") rule;
Hashtbl.add rewrite_rules (Longident.parse "Async_kernel.Ivar.Deferred.t") rule
let deferred_aliases =
[ "Async_core.Ivar.Deferred.t"
; "Async_kernel.Ivar.Deferred.t"
; "Async_kernel.Deferred0.t"
]
in
List.iter (fun s ->
Hashtbl.add rewrite_rules (Longident.parse s) rule)
deferred_aliases
(* Returns whether the argument is a toplevel expression. *)
let is_eval = function