View difference between Paste ID: UAWwNQ00 and EFv7ehja
SHOW: | | - or go back to the newest paste.
1-
===== .ml
1+
let printf : string -> int -> int -> ('a, unit, string, unit) format4 -> 'a =
2-
2+
3-
  let printf : string -> int -> int -> ('a, unit, string, unit) format4 -> 'a =
3+
    (fun brick_name brick_verb verb message ->
4
     Printf.ksprintf
5-
    (fun (brick_name : string) (brick_verb:int) (verb:int) (message : ('a, unit, string, unit) format4) ->
5+
6
        if true
7
        then Printf.printf "[%s][%.3f]%s" brick_name start_time s else ())
8-
	if true
8+
       message);;
9-
	then Printf.printf "[%s][%.3f]%s" brick_name start_time s else ())
9+
              val printf : string -> int -> int -> ('_a, unit, string, unit) format4 -> '_a =
10-
       message)
10+
  <fun>
11-
11+
# printf "hi" 5 1 "Bonjour %s !" "tobias";;
12-
===== .mli
12+
[hi][0.061]Bonjour tobias !- : unit = ()
13-
13+
# printf "hi" 5 1 "Bonjour %d !" 5;;
14-
      val printf :
14+
Characters 16-30:
15-
        string -> int -> int -> ('a, unit, string, unit) format4 -> 'a
15+
  printf "hi" 5 1 "Bonjour %d !" 5;;
16-
16+
                  ^^^^^^^^^^^^^^
17-
===== Erro :
17+
Error: This expression has type
18-
Error: The implementation PhTools.eliom
18+
         (string -> unit, string -> unit) CamlinternalFormatBasics.precision
19-
       does not match the interface _server/PhTools.cmi:
19+
       but an expression was expected of type
20-
       ...
20+
         (string -> unit, int -> 'a) CamlinternalFormatBasics.precision
21-
       In module Debug:
21+
       Type string is not compatible with type int