-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dune utop: don't select implementations
Signed-off-by: Lucas Pluvinage <lucas.pluvinage@gmail.com>
- Loading branch information
Showing
12 changed files
with
39 additions
and
2 deletions.
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
2 changes: 2 additions & 0 deletions
2
test/blackbox-tests/test-cases/utop-default-implementation/dune-project
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,2 @@ | ||
(lang dune 1.7) | ||
(using library_variants 0.1) |
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/utop-default-implementation/forutop-impl-2/dune
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,3 @@ | ||
(library | ||
(name forutop_impl_2) | ||
(implements forutop)) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/utop-default-implementation/forutop-impl-2/forutop.ml
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 @@ | ||
let run () = print_endline "shouldn't be selected" |
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/utop-default-implementation/forutop-impl/dune
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,3 @@ | ||
(library | ||
(name forutop_impl) | ||
(implements forutop)) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/utop-default-implementation/forutop-impl/forutop.ml
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 @@ | ||
let run () = print_endline "selected by default impl" |
4 changes: 4 additions & 0 deletions
4
test/blackbox-tests/test-cases/utop-default-implementation/forutop/dune
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,4 @@ | ||
(library | ||
(name forutop) | ||
(virtual_modules forutop) | ||
(default_implementation forutop_impl)) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/utop-default-implementation/forutop/forutop.mli
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 @@ | ||
val run : unit -> unit |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/utop-default-implementation/init_forutop.ml
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 @@ | ||
Forutop.run ();; |
2 changes: 2 additions & 0 deletions
2
test/blackbox-tests/test-cases/utop-default-implementation/run.t
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,2 @@ | ||
$ dune utop . init_forutop.ml | ||
selected by default impl |