package b0

  1. Overview
  2. Docs

File reads.

File reads

type t

The type for file read operations.

val file : t -> B0_std.Fpath.t

file r is the file read by r.

val result : t -> (string, string) result

result r is the contents of the read file or an error.

val set_result : t -> (string, string) result -> unit

set_result r res sets the file read result of r to res.

Formatters

val pp_result : (string, string) result B0_std.Fmt.t

pp_result formats the read result.

val pp : t B0_std.Fmt.t

pp formats a read.