summaryrefslogtreecommitdiff
path: root/src/internal.mli
blob: a82232d437c2b917088677a2ede286558bf3ffb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
exception Read_error of string
exception Write_error of string

module type T =
    sig
        type t
        val to_yojson : t -> Yojson.Safe.t
        val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
        val default : t
    end

module type FI = functor (M : T) ->
    sig
      val write_internal : M.t -> string -> unit
      val read_internal : string -> M.t
      val replace_internal : string -> string -> unit
    end

module Make : FI