Open agarwal opened 9 years ago
The outcome is empty when giving an invalid directive, e.g.
# Oloop.with_toploop Oloop.Outcome.merged ~f:(fun t -> Oloop.eval t "#asdf;;" >>| fun x -> Ok x) >>| ok_exn >>| function | `Uneval _ -> assert false | `Eval e -> Oloop.Outcome.(result e, stdout e, warnings e) ;; - : Outcometree.out_phrase * string * (Location.t * Warnings.t) list = (Outcometree.Ophr_signature [], "", [])
OCaml's toplevel gives:
# #asdf;; Unknown directive `asdf'.
The outcome is empty when giving an invalid directive, e.g.
OCaml's toplevel gives: