Module Persistent.MakeSource

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

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