functor (A : S->
  sig
    type t = A.t list
    val jtype : Package.jtype
    val of_json : json -> t
    val to_json : t -> json
  end