Module Topkg_care.Opam.Url

module Url: sig .. end

url files.


Url file

type t 

The type for url file contents.

val v : uri:string -> checksum:string -> t

v ~uri ~checksum is an URL file for URI uri with checksum checksum.

val with_distrib_file : uri:string ->
Fpath.t -> (t, Bos_setup.R.msg) Bos_setup.result

with_distrib_file ~uri f is an URL file for URI uri with the checksum of file f.

val to_opam_section : t -> string

to_opam_section u is u as an opam v2 url section.