package ocaml-print-intf
Display human-readable OCaml interface from a compiled .cmi
Install
Dune 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.
Published: 01 Apr 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)
- dune-build-info
- bos
-
ocaml
>= "4.06"
-
dune
>= "2.0"
Dev Dependencies
None
Used by
None
Conflicts
None
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page