This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
(rule
|
||||
(alias default)
|
||||
(action (run ./exe/test.exe)))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 3.7)
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(executable
|
||||
(name test)
|
||||
(libraries foolib))
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
let () =
|
||||
Foolib.Foo.Bar.run ();
|
||||
Foolib.Foo.A.B.run ()
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(include_subdirs qualified)
|
||||
|
||||
(library (name foolib))
|
||||
|
|
@ -0,0 +1 @@
|
|||
let run () = print_endline "hello from nested module B"
|
||||
|
|
@ -0,0 +1 @@
|
|||
let run () = print_endline "hello from nested module bar"
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
Basic test showcasing the feature. Every directory creates a new level of aliasing.
|
||||
$ dune build
|
||||
hello from nested module bar
|
||||
hello from nested module B
|
||||
|
||||
$ find _build -iname "*.ml-gen" | sort | while read file; do echo "contents of $file"; cat $file; echo "--------"; done;
|
||||
contents of _build/default/lib/foolib.ml-gen
|
||||
(* generated by dune *)
|
||||
|
||||
(** @canonical Foolib.Foo *)
|
||||
module Foo = Foolib__Foo
|
||||
--------
|
||||
contents of _build/default/lib/foolib__Foo.ml-gen
|
||||
(* generated by dune *)
|
||||
|
||||
(** @canonical Foolib.Foo.A *)
|
||||
module A = Foolib__Foo__A
|
||||
|
||||
(** @canonical Foolib.Foo.Bar *)
|
||||
module Bar = Foolib__Foo__Bar
|
||||
--------
|
||||
contents of _build/default/lib/foolib__Foo__A.ml-gen
|
||||
(* generated by dune *)
|
||||
|
||||
(** @canonical Foolib.Foo.A.B *)
|
||||
module B = Foolib__Foo__A__B
|
||||
--------
|
||||
Loading…
Add table
Add a link
Reference in a new issue