refactoring: new type aliases Misc.{filepath,modname,crcs,alerts}

master
Gabriel Scherer 2019-01-27 12:38:02 +01:00
parent 9bcb8361ea
commit 9847940c01
2 changed files with 12 additions and 0 deletions

View File

@ -880,3 +880,9 @@ let debug_prefix_map_flags () =
let print_if ppf flag printer arg =
if !flag then Format.fprintf ppf "%a@." printer arg;
arg
type filepath = string
type modname = string
type crcs = (modname * Digest.t option) list
type alerts = string Stdlib.String.Map.t

View File

@ -452,3 +452,9 @@ val debug_prefix_map_flags: unit -> string list
val print_if :
Format.formatter -> bool ref -> (Format.formatter -> 'a -> unit) -> 'a -> 'a
(** [print_if ppf flag fmt x] prints [x] with [fmt] on [ppf] if [b] is true. *)
type filepath = string
type modname = string
type crcs = (modname * Digest.t option) list
type alerts = string Stdlib.String.Map.t