package tablecloth-native

  1. Overview
  2. Docs

This functor lets you describe the type of Sets a little more concisely.

let names : Set.Of(String).t =
  Set.fromList (module String) ["Andrew"; "Tina"]

Is the same as

let names : (string, String.identity) Set.t =
  Set.fromList (module String) ["Andrew"; "Tina"]

Parameters

module M : sig ... end

Signature

type nonrec t = (M.t, M.identity) t