ocamlmod(1)

ocamlmod1

Generate ocaml modules from source files

Usage

ocamlmod [{‐help | ‐‐help}] file.mod

Overview

This program allows one to generate a single module files from a bunch of OCaml source file.

File syntax

The file.mod must contains one source (.ml) per line.

Each .ml file is copied with an indentation of 2 space into file.ml The target filename is derived from the .mod filename.

During the copy, some parts are removed:

•

Every lines contains inside a (* END EXPORT *), (* START EXPORT *)

•

Some camlp4 related directive (with odn and TYPE_CONV_PATH).

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7
  2. 8–13

Authors

Sylvain Le Gall.

From ocamlmod 0.0.9-5+b3 in Debian 13 (Trixie). Parsed by carta from the page's man source.