forked from ocaml/dune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not hide lib interface module (ocaml#6549)
Signed-off-by: Rudi Grinberg <[email protected]> ps-id: f6931bc9-6cd8-4172-a865-fce524052fb7 Co-authored-by: Etienne Millon <[email protected]>
- Loading branch information
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Test alias module for wrapped libraries that don't have a main module, i.e. the | ||
wrap module is generated by dune. | ||
|
||
$ cat >dune-project <<EOF | ||
> (lang dune 3.5) | ||
> EOF | ||
|
||
$ cat >dune <<EOF | ||
> (library | ||
> (name foo)) | ||
> EOF | ||
$ touch bar.ml | ||
|
||
$ dune build | ||
$ cat _build/default/foo.ml-gen | ||
(* generated by dune *) | ||
|
||
(** @canonical Foo.Bar *) | ||
module Bar = Foo__Bar | ||
|
||
The final `Foo` module should not be marked as deprecated/shadowed, since it | ||
does not shadow any module. |