Module Vcs.File_contents

Representing the raw contents of files on disk.

type t = private Base.string

This is a simple wrapper for the type string, used to increase type safety.

include Ppx_compare_lib.Comparable.S with type t := t
val compare : t Base__Ppx_compare_lib.compare
include Ppx_compare_lib.Equal.S with type t := t
val equal : t Base__Ppx_compare_lib.equal
include Ppx_hash_lib.Hashable.S with type t := t
val hash_fold_t : t Base__Ppx_hash_lib.hash_fold
val hash : t -> Base__Ppx_hash_lib.Std.Hash.hash_value
val sexp_of_t : t -> Sexplib0.Sexp.t
val create : Base.string -> t

create file_contents returns a t representing the given file contents.

val to_string : t -> Base.string

to_string s is a convenient wrapper for (s :> string) for use with map functions.