package ocaml-print-intf

  1. Overview
  2. Docs
Display human-readable OCaml interface from a compiled .cmi

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-print-intf-v1.1.0.tbz
sha256=d7a0d427b5c5569975efcdb111face78ed12f07955c83bd5eb01bbfd2f778bca
sha512=66447665aa699fb17b646630c21a774c61fdd73fddbb22dcd50505e672491cce905a36493020ca1db54ef7301aaf229985f82b7a4fedd41a023f2387d234a717

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.

Published: 26 Mar 2020

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

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.