This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
(alias
|
||||
(name runtest)
|
||||
(action (run ./main.exe)))
|
||||
|
||||
(executable (name main))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 1.0)
|
||||
|
|
@ -0,0 +1 @@
|
|||
module Sub = Lib_sub
|
||||
|
|
@ -0,0 +1 @@
|
|||
module Sub = Lib_sub
|
||||
|
|
@ -0,0 +1 @@
|
|||
val hello : string
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
let () =
|
||||
print_endline Lib.Sub.hello;
|
||||
()
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
When there are explicit interfaces, modules must be rebuilt.
|
||||
$ echo 'let hello = "hello"' > lib_sub.ml
|
||||
|
||||
$ dune runtest
|
||||
hello
|
||||
$ echo 'let _x = 1;; let () = print_endline "blah"' >> lib_sub.ml
|
||||
$ dune runtest
|
||||
blah
|
||||
hello
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
(alias
|
||||
(name runtest)
|
||||
(action (run ./main.exe)))
|
||||
|
||||
(executable (name main))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 1.0)
|
||||
|
|
@ -0,0 +1 @@
|
|||
module Sub = Lib_sub
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
let () =
|
||||
print_endline Lib.Sub.hello;
|
||||
()
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
When there are no interfaces, the situation is the same, but it
|
||||
is not possible to rely on these.
|
||||
|
||||
$ echo 'let hello = "hello"' > lib_sub.ml
|
||||
|
||||
$ dune runtest
|
||||
hello
|
||||
$ echo 'let _x = 1' >> lib_sub.ml
|
||||
$ dune runtest
|
||||
hello
|
||||
Loading…
Add table
Add a link
Reference in a new issue