From 43ee7b4de7a7d3cf18859d07300a79a9efc4ff73 Mon Sep 17 00:00:00 2001 From: swrup Date: Mon, 13 Oct 2025 00:29:33 +0200 Subject: [PATCH] --- src/config.ml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/config.ml b/src/config.ml index 08fff141..5fbe59df 100644 --- a/src/config.ml +++ b/src/config.ml @@ -1,7 +1,10 @@ (* https://docs.taler.net/manpages/taler-exchange.conf.5.html#exchange-options *) (* TODO - generate `config.ml` from config file (virtual module)? + - parse config file format - no relative path *) +(* TODO default config: use relevant duration, all set to 1 year for now *) + let default_lang = "en" let default_encoding : [< `Identity | `DEFLATE | `Gzip ] = `Identity @@ -37,8 +40,7 @@ let currency_round_unit = { currency= `Eur; value= 0; fraction= 1 } let value_to_string v = Fmt.str "%s:%d.%d" (currency_to_string v.currency) v.value v.fraction -(* todo: use relevant duration, all set to 1 year for now *) - +(* https://docs.taler.net/manpages/taler-exchange.conf.5.html#exchange-coin-options *) module Coin = struct (* How much is the coin worth, the format is CURRENCY:VALUE.FRACTION. For example, a 10 cent piece is “EUR:0.10”. *)