functor (Shape : Shape)
  (Data : sig type t val structure : t Shape.structure end->
  sig
    val mem : 'Shape.key -> bool
    val get : 'Shape.key -> (Data.t -> 'a) option
    val set : 'Shape.key -> '-> Data.t -> Data.t
  end