File: table.mli

package info (click to toggle)
coq 8.16.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 40,596 kB
  • sloc: ml: 219,376; sh: 3,545; python: 3,231; ansic: 2,529; makefile: 767; lisp: 279; javascript: 63; xml: 24; sed: 2
file content (27 lines) | stat: -rw-r--r-- 753 bytes parent folder | download | duplicates (2)
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
module Align : sig
  type t =
    | Left
    | MidLeft
    | Middle
    | MidRight
    | Right
  (** Type of Alignments. During the justification phase of printing, the
    alignment decides how much space should be left on the left and right of the
    data. *)
end

type header = string
type row = string list list

(** Print the table with optional alignment parameters. The alignment parametrs
    must have the same shape as the corresponding data. Due to a limitation of
    OCaml, the entire thing has to be thunked in order for optional arguments to
    come at the end. *)
val print : header list
  -> row
  -> row list
  -> ?align_headers:Align.t list
  -> ?align_top:Align.t list list
  -> ?align_rows:Align.t list list
  -> unit
  -> header