package ocaml-print-intf

All checked builds pass
  1. Overview
  2. Docs
Display human-readable OCaml interface from a compiled .cmi

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocaml-print-intf-v1.2.0.tbz
sha256=02aad204b646f67b3d2aa7dae5d74083ce4bd169e5b43b691c1f04c9436d9980
sha512=35587c33d5d57fb683b3a903930e9cd9bfcd195a0ec171a51b6ab727a84fab8b6b1b16ebdff240addd1a1aa92c7e8ad3d70570da831491368ece6a8a6f36fad7

Description

This tool parses a compiled .cmi interface file and outputs the corresponding textual .mli file. This can be useful to quickly generate a skeleton interface file to then annotate with comments or add abstraction.

Added to opam-repository:

README

ocaml-print-intf

Pretty prints a compiled interface file into the corresponding human-readable OCaml signature.

This is a convenient alternative to ocamlc -i which does this on source .ml files.

Example

On this repository:

$ dune exec -- ocaml-print-intf ocaml_print_intf.ml
val root_from_verbose_output : string list -> string
val target_from_verbose_output : string list -> string
val build_cmi : string -> string
val print_intf : string -> unit
val version : unit -> string
val usage : unit -> unit

Dependencies (4)

  1. dune-build-info
  2. bos
  3. ocaml >= "4.06"
  4. dune >= "2.0"

Dev Dependencies

None

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building ocaml-print-intf with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
1.2.0 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure