Module Vcs.File_contents

Representing the raw contents of files on disk.

type t = private string

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

val compare : t -> t -> int
val equal : t -> t -> bool
val hash : t -> int
val seeded_hash : int -> t -> int
val sexp_of_t : t -> Sexplib0.Sexp.t
val create : string -> t

create file_contents returns a t representing the given file contents.

val to_string : t -> string

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