/usr/lib/ocaml/oasis/FormatExt.mli is in liboasis-ocaml-dev 0.4.10-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | (******************************************************************************)
(* OASIS: architecture for building OCaml libraries and applications *)
(* *)
(* Copyright (C) 2011-2016, Sylvain Le Gall *)
(* Copyright (C) 2008-2011, OCamlCore SARL *)
(* *)
(* This library is free software; you can redistribute it and/or modify it *)
(* under the terms of the GNU Lesser General Public License as published by *)
(* the Free Software Foundation; either version 2.1 of the License, or (at *)
(* your option) any later version, with the OCaml static compilation *)
(* exception. *)
(* *)
(* This library is distributed in the hope that it will be useful, but *)
(* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *)
(* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *)
(* details. *)
(* *)
(* You should have received a copy of the GNU Lesser General Public License *)
(* along with this library; if not, write to the Free Software Foundation, *)
(* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *)
(******************************************************************************)
(** Extra functions for Format
Format functions that uses markdown syntax.
@author Sylvain Le Gall
*)
(** Print a string considering ' ' as Format space.
*)
val pp_print_string_spaced: Format.formatter -> string -> unit
(** [pp_print_list pp_elem sep fmt lst] Print the list [lst] of elements
using [pp_elem] for each element and separate them by [sep].
*)
val pp_print_list:
(Format.formatter -> 'a -> unit) ->
('b, Format.formatter, unit) format -> Format.formatter -> 'a list -> unit
(** [pp_print_para fmt str] Print a paragraph. '\n\n' mark the end of a
paragraph.
*)
val pp_print_para: Format.formatter -> ?end_para:bool -> string -> unit
(** See {! pp_print_para}. *)
val pp_print_paraf:
Format.formatter -> ?end_para:bool -> ('a, unit, string, unit) format4 -> 'a
(** [pp_print_title fmt lvl str] Print a title using markdown formatting. *)
val pp_print_title: Format.formatter -> int -> string -> unit
(** See {! pp_print_title}. *)
val pp_print_titlef:
Format.formatter -> int -> ('a, unit, string, unit) format4 -> 'a
(** Print two cut in a row. *)
val pp_print_cut2: Format.formatter -> unit -> unit
(** Print 1 or 2 newlines depending on the previous char. *)
val pp_print_endblock:
?check_last_char:string -> Format.formatter -> unit -> unit
(** Print a definition, as defined by pandoc (ext. of markdown)> *)
val pp_print_def: Format.formatter -> string ->
((Format.formatter -> 'a -> unit) * 'a) list -> unit
|