TOML 1.1 codecs for OCaml

Fix errors in documentation, and add a toplevel index

authored by jon.recoil.org and committed by

Tangled 1ea502b4 f8f6d8ae

+3 -3
+1 -1
lib_jsont/tomlt_jsont.mli
··· 92 92 93 93 val decode_jsont_exn : string -> Toml.t 94 94 (** [decode_jsont_exn s] is like [decode_jsont'] but raises on error. 95 - @raise Jsont.Error.Error on decode failure. *) 95 + @raise Jsont.exception-Error on decode failure. *) 96 96 97 97 (** {1:internal Internal Types} 98 98
+2 -2
lib_unix/tomlt_unix.mli
··· 57 57 val of_channel : ?file:string -> in_channel -> Tomlt.Toml.t 58 58 (** [of_channel ic] reads and parses TOML from an input channel. 59 59 @param file Optional filename for error messages. 60 - @raise Toml.Error.Error on parse errors. *) 60 + @raise Tomlt.Toml.Error.exception-Error on parse errors. *) 61 61 62 62 val to_channel : out_channel -> Tomlt.Toml.t -> unit 63 63 (** [to_channel oc value] writes [value] as TOML to an output channel. ··· 73 73 74 74 val decode_file_exn : 'a Tomlt.t -> string -> 'a 75 75 (** [decode_file_exn codec path] is like {!decode_file} but raises on errors. 76 - @raise Toml.Error.Error on parse or decode errors. 76 + @raise Tomlt.Toml.Error.exception-Error on parse or decode errors. 77 77 @raise Sys_error on file errors. *) 78 78 79 79 val encode_file : 'a Tomlt.t -> 'a -> string -> unit