aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration/importConf.mli
blob: 72344993ee6d9f8788e84e7b73828b5c2685df7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
type loader_context = {
  checkFile : string -> bool;
  loadFile : string -> Otoml.t;
}

val t_of_toml :
  context:loader_context -> Otoml.t -> (ImporterSyntax.t, string) result
(** [fileChecker] is called when a file is declared in the configuration. An
    arror will be raised if the computation return false *)

val expression_from_string :
  string -> (ImportDataTypes.Path.t ImportExpression.T.t, string) result