generate @canonical doc tags

This commit is contained in:
Jeremie Dimino 2017-03-13 14:08:15 +00:00
parent d8676041e6
commit 132ddca42b
2 changed files with 7 additions and 2 deletions

View File

@ -10,6 +10,8 @@
- Added =${null}= which expands to =/dev/null= on Unix and =NUL= on
Windows
- Improve the doc generated by =odoc= for wrapped libraries
- Fix a bug where =jbuilder= would crash when there was no
=<package>.opam= file

View File

@ -1341,8 +1341,11 @@ module Gen(P : Params) = struct
(Build.return
(String_map.values (String_map.remove m.name modules)
|> List.map ~f:(fun (m : Module.t) ->
sprintf "module %s = %s\n" m.name (Module.real_unit_name m))
|> String.concat ~sep:"")
sprintf "(* @canonical %s.%s *)\n\
module %s = %s\n"
main_module_name m.name
m.name (Module.real_unit_name m))
|> String.concat ~sep:"\n")
>>> Build.update_file_dyn (Path.relative dir m.ml_fname)));
let requires, real_requires =