package records

  1. Overview
  2. Docs

Module Record.SafeSource

Safe interface

This interface is similar to Unsafe except that the phantom type normally passed to declare is generated by a functor. This has the other advantage of making the layout argument implicit in the output module.

Sourcemodule type LAYOUT = sig ... end
Sourceval declare : string -> (module LAYOUT)

Create a new layout with the given name.

OCaml

Innovation. Community. Security.