Commits

camlspotter committed 55b79a0

catch is exposed

  • Participants
  • Parent commits 5c14014
  • Branches 4.01.0.2.1.3

Comments (0)

Files changed (1)

 exception Finally of exn * exn
 
 val protect : f:('a -> 'b) -> 'a -> finally:('a -> unit) -> 'b
+val catch : f:('a -> 'b) -> 'a -> [> `Error of exn | `Ok of 'b ]
 val failwithf : ('a, unit, string, 'b) format4 -> 'a
 val invalid_argf : ('a, unit, string, 'b) format4 -> 'a
 val with_ref : 'a ref -> 'a -> (unit -> 'b) -> 'b