This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
(library
|
||||
(name lib)
|
||||
(modules :standard \ test))
|
||||
|
||||
(executable
|
||||
(name test)
|
||||
(libraries lib))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 1.0)
|
||||
|
|
@ -0,0 +1 @@
|
|||
let run () = print_endline "foo bar"
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
$ dune exec ./test.exe --debug-dep
|
||||
File "dune", line 1, characters 0-0:
|
||||
Error: Module "Lib" is used in several stanzas:
|
||||
- dune:1
|
||||
- dune:5
|
||||
To fix this error, you must specify an explicit "modules" field in every
|
||||
library, executable, and executables stanzas in this dune file. Note that
|
||||
each module cannot appear in more than one "modules" field - it must belong
|
||||
to a single library or executable.
|
||||
[1]
|
||||
|
||||
$ dune build src/a.cma --debug-dep
|
||||
File "src/dune", line 1, characters 0-0:
|
||||
Error: Module "X" is used in several stanzas:
|
||||
- src/dune:1
|
||||
- src/dune:2
|
||||
To fix this error, you must specify an explicit "modules" field in every
|
||||
library, executable, and executables stanzas in this dune file. Note that
|
||||
each module cannot appear in more than one "modules" field - it must belong
|
||||
to a single library or executable.
|
||||
[1]
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
(library (name a))
|
||||
(library (name b))
|
||||
|
|
@ -0,0 +1 @@
|
|||
let x = 42
|
||||
|
|
@ -0,0 +1 @@
|
|||
Lib.run ();;
|
||||
Loading…
Add table
Add a link
Reference in a new issue