We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac64e51 commit 3e78a38Copy full SHA for 3e78a38
src/odoc/odoc_link.ml
@@ -45,6 +45,12 @@ let from_odoc ~resolver ~warnings_options input output =
45
link_unit ~resolver ~filename m
46
|> handle_warnings ~input_warnings ~warnings_options
47
>>= fun (m, warnings) ->
48
+ (* Remove the shape here so that we only depend upon odoc types
49
+ rather than odoc and ocaml types. This means we should be able
50
+ save an odocl file with odoc x.y compiled with one version of
51
+ the compiler and load it in odoc x.y compiled with a different
52
+ version of the compiler. This is an important use case for
53
+ voodoo. *)
54
let m = { m with Odoc_model.Lang.Compilation_unit.shape = None } in
55
Odoc_file.save_unit output ~warnings m;
56
Ok (`Module m)
0 commit comments