sig
  type t
  val empty : t
  val write : OpamTypes.filename -> t -> unit
  val read : OpamTypes.filename -> t
  val safe_read : OpamTypes.filename -> t
  val read_from_channel : in_channel -> t
  val write_to_channel : out_channel -> t -> unit
  val url : t -> string
  val kind : t -> OpamTypes.repository_kind option
  val checksum : t -> string option
  val with_checksum : t -> string -> t
end