The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #39 from copy/master

Make error variant open

authored by

Calascibetta Romain and committed by
GitHub
520927d1 b9055361

+4 -4
+4 -4
vendor/opam/base64/src/base64.mli
··· 62 62 63 63 @raise if Invalid_argument [s] is not a valid Base64 string. *) 64 64 65 - val decode_sub : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (sub, [ `Msg of string ]) result 65 + val decode_sub : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (sub, [> `Msg of string ]) result 66 66 (** Same as {!decode_exn} but it returns a result type instead to raise an 67 67 exception. Then, it returns a {!sub} string. Decoded input [(str, off, len)] 68 68 will starting to [off] and will have [len] bytes - by this way, we ensure to 69 69 allocate only one time result. *) 70 70 71 - val decode : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (string, [ `Msg of string ]) result 71 + val decode : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (string, [> `Msg of string ]) result 72 72 (** Same as {!decode_exn}, but returns an explicit error message {!result} if it fails. *) 73 73 74 - val encode : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (string, [ `Msg of string]) result 74 + val encode : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (string, [> `Msg of string]) result 75 75 (** [encode s] encodes the string [s] into base64. If [pad] is false, no 76 76 trailing padding is added. [pad] defaults to [true], and [alphabet] to 77 77 {!default_alphabet}. ··· 83 83 trailing padding is added. [pad] defaults to [true], and [alphabet] to 84 84 {!default_alphabet}. *) 85 85 86 - val encode_sub : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (sub, [ `Msg of string]) result 86 + val encode_sub : ?pad:bool -> ?alphabet:alphabet -> ?off:int -> ?len:int -> string -> (sub, [> `Msg of string]) result 87 87 (** Same as {!encode} but return a {!sub}-string instead a plain result. By this 88 88 way, we ensure to allocate only one time result. *) 89 89