From 269cef804819e9aef1c2d6642b26c87f306cb176 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 29 Oct 2018 00:48:03 +0100 Subject: sid: sid_test: move conversion functions to result MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Get rid of all “StringFmt” APIs involving exceptions. There is now only the “decode” function which returns a result type. --- sid.mli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sid.mli') diff --git a/sid.mli b/sid.mli index 23c4a71..cffc0e9 100644 --- a/sid.mli +++ b/sid.mli @@ -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 -- cgit v1.2.3