package dune-private-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Create a pair of functions to write/read a persistent value to/from a file. D.name must be unique.

In the future, we plan to add a command dune dump <file> that will pretty-print the contents of any persistent file. This command will use the D.name stored in the persistent file to locate the appropriate pretty printer.

Parameters

module D : Desc

Signature

val to_string : D.t -> string
val dump : Stdune.Path.t -> D.t -> unit
val load : Stdune.Path.t -> D.t option
OCaml

Innovation. Community. Security.