rename to lib/

This commit is contained in:
swrup 2025-11-20 23:14:16 +01:00
parent a774ea11ac
commit 7198d3f0f4
9 changed files with 27 additions and 22 deletions

21
lib/amount.mli Normal file
View file

@ -0,0 +1,21 @@
type sign =
| Sign_plus
| Sign_minus
type t = private {
sign: sign option;
currency: string;
value: Int64.t;
fraction: Int32.t;
}
val make :
sign:sign option ->
currency:string ->
value:Int64.t ->
fraction:Int32.t ->
(t, string) result
val pp : Format.formatter -> t -> unit
val to_string : t -> string
val of_string : string -> (t, string) result