diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2018-10-29 00:48:03 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2018-10-30 01:15:03 +0100 |
commit | 269cef804819e9aef1c2d6642b26c87f306cb176 (patch) | |
tree | b7a3b118ecafb06d7e3350690c3c99f52681f67a /sid.mli | |
parent | 7aa81d2a490e161082f3c38c9d0e806d841caca2 (diff) | |
download | ocaml-sid-269cef804819e9aef1c2d6642b26c87f306cb176.tar.gz |
sid: sid_test: move conversion functions to result
Get rid of all “StringFmt” APIs involving exceptions.
There is now only the “decode” function which returns
a result type.
Diffstat (limited to 'sid.mli')
-rw-r--r-- | sid.mli | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -11,7 +11,7 @@ val get_sub_auths : t -> sub_auths module StringFmt : sig - val decode : string -> (t, string result) + val decode : string -> (t, string) result val encode : t -> string end @@ -48,6 +48,6 @@ module WellKnown : end end -val of_string : string -> t +val of_string : string -> (t, string) result val to_string : t -> string |