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.0.0.tbz
sha256=e31ed8fd95010addd1a6e4fb6bc638916ba5265ea3b4ebc923e2273290b8a97a
sha512=961ad780982423e1fe29532cacfd6f012b5dfedb3066ecfff67a1927877978a9452cce63cc113863f9070006f8c0e40d2af7b4a966b27af0929fbd500f6b7b97

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: 17 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 build
$ dune exec -- ocaml-print-intf ./_build/default/.ocaml_print_intf.eobjs/byte/dune__exe__Ocaml_print_intf.cmt
val print_intf : string -> unit
val version : unit -> string
val usage : unit -> unit

Dependencies (3)

  1. dune-build-info
  2. ocaml >= "4.03"
  3. dune >= "2.0"

Dev Dependencies

None

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.