Skip to content
Snippets Groups Projects
Commit 29e8e7c4 authored by Kilyan Le Gallic's avatar Kilyan Le Gallic
Browse files

[wp] PoC for opening module, TBD

parent ef2f1c59
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,21 @@ let open_theories_of_user (env) (theories) =
) (extract_last_segments theories)
let open_modules_of_user (env) (modules) =
List.iter
(fun (theory_name, theory_path) ->
try
let pmodule = (W.Pmodule.read_module env (theory_path) (theory_name)) in
List.iter ( fun (modunit : W.Pmodule.mod_unit) ->
L.debug ~level:0 "Meta";
) pmodule.mod_units;
with W.Env.LibraryNotFound paths ->
L.debug ~level:0 "Library %s not found at %s " theory_name (String.concat "." paths);
) (extract_last_segments modules)
let () =
Boot.Main.extend
begin fun () ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment