package reason-standard

  1. Overview
  2. Docs

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

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

Is the same as

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

Parameters

module M : sig ... end

Signature

type nonrec 'value t = (M.t, M.identity) t
OCaml

Innovation. Community. Security.