Advertisement
Guest User

Untitled

a guest
Mar 10th, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.87 KB | None | 0 0
  1. ===== .ml
  2.  
  3.   let printf : string -> int -> int -> ('a, unit, string, unit) format4 -> 'a =
  4.     let start_time = Sys.time () in
  5.     (fun (brick_name : string) (brick_verb:int) (verb:int) (message : ('a, unit, string, unit) format4) ->
  6.      Printf.ksprintf
  7.        (fun s ->
  8.     if true
  9.     then Printf.printf "[%s][%.3f]%s" brick_name start_time s else ())
  10.        message)
  11.  
  12. ===== .mli
  13.  
  14.       val printf :
  15.         string -> int -> int -> ('a, unit, string, unit) format4 -> 'a
  16.  
  17. ===== Erro :
  18. Error: The implementation PhTools.eliom
  19.        does not match the interface _server/PhTools.cmi:
  20.        ...
  21.        In module Debug:
  22.        Values do not match:
  23.          val printf :
  24.            string -> int -> int -> (unit, unit, string, unit) format4 -> unit
  25.        is not included in
  26.          val printf :
  27.            string -> int -> int -> ('a, unit, string, unit) format4 -> 'a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement