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 b63a6ee commit c53c4e9Copy full SHA for c53c4e9
src/odoc/indexing.ml
@@ -104,14 +104,13 @@ let compile_to_marshall ~output ~warnings_options files =
104
Ok (Odoc_file.save_index output final_index)
105
106
let compile out_format ~output ~warnings_options includes =
107
-
108
let files =
109
- List.concat_map
110
- (fun include_rec ->
111
- Fs.Directory.fold_files_rec ~ext:"odocl"
112
- (fun files file -> file :: files)
113
- [] include_rec)
114
- includes
+ includes
+ |> List.map (fun include_rec ->
+ Fs.Directory.fold_files_rec ~ext:"odocl"
+ (fun files file -> file :: files)
+ [] include_rec)
+ |> List.concat
115
in
116
if files = [] then Error (`Msg "No .odocl files were included")
117
else
0 commit comments