package reason-standard

  1. Overview
  2. Docs

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

let stringToInt : int Map.Of(String).t = 
  Map.ofList (module String) [("Apple", 2); ("Pear", 0)]

Is the same as

let stringToInt : (string, int, String.identity) Map.t = 
  Map.ofList (module String) [("Apple", 2); ("Pear", 0)]

Parameters

module M : sig ... end

Signature

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