functor (T : sig val name : string end->
  sig
    type t
    val create : unit -> t
    val clear : t -> unit
    val get : unit -> t
    val set : t -> unit
    val clear_some_projects : (Project_skeleton.t -> bool) -> t -> bool
    module Datatype :
      sig
        type t = t
        val ty : t Type.t
        val name : string
        val descr : t Descr.t
        val packed_descr : Structural_descr.pack
        val reprs : t list
        val equal : t -> t -> bool
        val compare : t -> t -> int
        val hash : t -> int
        val pretty_code : Format.formatter -> t -> unit
        val internal_pretty_code :
          Type.precedence -> Format.formatter -> t -> unit
        val pretty : Format.formatter -> t -> unit
        val varname : t -> string
        val mem_project : (Project_skeleton.t -> bool) -> t -> bool
        val copy : t -> t
      end
    val add_state : State.t -> State.t list -> unit
    val remove_state : State.t -> unit
    val real_clear : unit -> unit
  end