Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add implicit transitive deps #20

Merged
merged 4 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bopkit-tests.opam
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ depends: [
"mdx" {>= "2.4"}
"menhir" {>= "20220210"}
"parsing-utils" {>= "0.2.2"}
"pp" {>= "1.2.0"}
"pp" {>= "2.0.0"}
"pp-extended" {>= "0.0.2"}
"pp-log" {>= "0.0.8"}
"ppx_compare" {>= "v0.17" & < "v0.18"}
Expand Down
3 changes: 2 additions & 1 deletion bopkit.opam
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ depends: [
"cmdliner" {>= "1.3.0"}
"comments-parser" {>= "0.2.2"}
"core" {>= "v0.17" & < "v0.18"}
"core_kernel" {>= "v0.17" & < "v0.18"}
"core_unix" {>= "v0.17" & < "v0.18"}
"dune-site" {>= "3.16"}
"fpath" {>= "0.7.3"}
Expand All @@ -30,7 +31,7 @@ depends: [
"mdx" {>= "2.4"}
"menhir" {>= "20220210"}
"parsing-utils" {>= "0.2.2"}
"pp" {>= "1.2.0"}
"pp" {>= "2.0.0"}
"pp-extended" {>= "0.0.2"}
"pp-log" {>= "0.0.8"}
"ppx_compare" {>= "v0.17" & < "v0.18"}
Expand Down
14 changes: 8 additions & 6 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

(using menhir 3.0)

(cram enable)

(package
(name bopkit)
(synopsis "An educational project for digital circuits programming")
Expand Down Expand Up @@ -63,6 +61,10 @@
(and
(>= v0.17)
(< v0.18)))
(core_kernel
(and
(>= v0.17)
(< v0.18)))
(core_unix
(and
(>= v0.17)
Expand All @@ -84,7 +86,7 @@
(parsing-utils
(>= 0.2.2))
(pp
(>= 1.2.0))
(>= 2.0.0))
(pp-extended
(>= 0.0.2))
(pp-log
Expand Down Expand Up @@ -191,7 +193,7 @@
(parsing-utils
(>= 0.2.2))
(pp
(>= 1.2.0))
(>= 2.0.0))
(pp-extended
(>= 0.0.2))
(pp-log
Expand Down Expand Up @@ -294,7 +296,7 @@
(parsing-utils
(>= 0.2.2))
(pp
(>= 1.2.0))
(>= 2.0.0))
(pp-extended
(>= 0.0.2))
(pp-log
Expand Down Expand Up @@ -407,7 +409,7 @@
(parsing-utils
(>= 0.2.2))
(pp
(>= 1.2.0))
(>= 2.0.0))
(pp-extended
(>= 0.0.2))
(pp-log
Expand Down
1 change: 1 addition & 0 deletions lib/bopkit_block/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
-open
Cmdlang)
(libraries
base
bit_utils
cmdlang
cmdlang-cmdliner-runner
Expand Down
2 changes: 2 additions & 0 deletions lib/bopkit_circuit/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
bopkit
bopkit_sites
core ;; For [Core.Set_once]
fpath
loc
pp
pp-log.err)
(lint
(pps ppx_js_style -check-doc-comments))
Expand Down
4 changes: 4 additions & 0 deletions lib/bopkit_command/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@
-open
Cmdlang)
(libraries
auto-format
base
bopkit
bopkit_bdd_command
bopkit_circuit
bopkit_compiler
bopkit_counter
bopkit_pp
Expand All @@ -32,6 +35,7 @@
core
fpath
fpath-base
pp
pp-log.cli
pp-log.err
seven_segment_display
Expand Down
1 change: 1 addition & 0 deletions lib/bopkit_compiler/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
graphics
loc
parsing-utils
pp
pp-log.err
unix)
(lint
Expand Down
2 changes: 1 addition & 1 deletion lib/bopkit_memory/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Base
-open
Stdio)
(libraries base bit_utils graphics stdio)
(libraries base bit_utils fpath graphics stdio)
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
Expand Down
2 changes: 1 addition & 1 deletion lib/bopkit_pp/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(name bopkit_pp)
(public_name bopkit.pp)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a -open Base)
(libraries auto-format base bopkit bopkit_circuit pp)
(libraries auto-format base bopkit bopkit_circuit fpath pp)
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
Expand Down
1 change: 1 addition & 0 deletions lib/bopkit_process_command/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
cmdlang
fpath
fpath-base
parsing-utils
pp
pp-log.cli
pp-log.err)
Expand Down
1 change: 1 addition & 0 deletions lib/bopkit_process_interpreter/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
bopkit_process
bopkit_process_syntax
loc
pp
pp-log.err
stdio)
(lint
Expand Down
4 changes: 4 additions & 0 deletions lib/bopkit_simulator/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@
Cmdlang)
(libraries
base
bit_utils
bopkit
bopkit_circuit
bopkit_sites
cmdlang
core
core_unix
core_unix.sys_unix
fpath
loc
pp
pp-log.err
stdio)
(lint
Expand Down
2 changes: 1 addition & 1 deletion lib/bopkit_sleeper/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(name bopkit_sleeper)
(public_name bopkit.sleeper)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a -open Core)
(libraries core core_unix)
(libraries core core_kernel.caml_unix core_unix)
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
Expand Down
2 changes: 1 addition & 1 deletion lib/bopkit_syntax/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
(name bopkit_syntax)
(public_name bopkit.syntax)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a -open Core)
(libraries bopkit comments-parser core loc parsing-utils))
(libraries bopkit comments-parser core fpath loc parsing-utils))
2 changes: 2 additions & 0 deletions lib/bopkit_to_c/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a -open Base)
(libraries
base
bit_utils
bopkit_circuit
bopkit_compiler
fpath
loc
parsing-utils
pp
Expand Down
1 change: 1 addition & 0 deletions lib/bopkit_topological_sort/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
-open
Expect_test_helpers_base)
(libraries
appendable-list
base
bopkit_topological_sort
expect_test_helpers_core.expect_test_helpers_base
Expand Down
3 changes: 3 additions & 0 deletions project/subleq/circuit/dune
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@
Cmdlang)
(libraries
base
bit_utils
cmdlang
core
core_unix.core_thread
bopkit_block
bopkit_sleeper
fpath
graphics
bopkit_memory
stdio
unix
threads)
(preprocess
Expand Down
1 change: 1 addition & 0 deletions project/visa/circuit/dune
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@
Cmdlang)
(libraries
base
bit_utils
bopkit_block
cmdlang
cmdlang-cmdliner-runner
Expand Down
2 changes: 1 addition & 1 deletion project/visa/lib/visa_assembler/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(name visa_assembler)
(public_name bopkit.visa-assembler)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a -open Base)
(libraries base loc pp-log.err visa)
(libraries base loc pp pp-log.err visa)
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
Expand Down
2 changes: 2 additions & 0 deletions project/visa/lib/visa_command/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
core
fpath
fpath-base
parsing-utils
pp-extended
pp-log.cli
pp-log.err
seven_segment_display
Expand Down
1 change: 1 addition & 0 deletions project/visa/lib/visa_dsl/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
pp-extended
pp-log.err
visa
visa_assembler
visa_dsl
visa_pp
visa_simulator)
Expand Down
2 changes: 2 additions & 0 deletions project/visa/lib/visa_simulator/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
fpath
fpath-base
loc
parsing-utils
pp
pp-log.cli
pp-log.err
stdio
Expand Down
2 changes: 2 additions & 0 deletions stdlib/7-segment/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
bit_utils
cmdlang
core
core_kernel.caml_threads
core_kernel.caml_unix
core_unix
core_unix.core_thread
graphics
Expand Down
6 changes: 5 additions & 1 deletion stdlib/7-segment/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
Core
-open
Seven_segment_display)
(libraries bopkit.seven-segment-display core expect_test_helpers_core)
(libraries
bit_utils
bopkit.seven-segment-display
core
expect_test_helpers_core)
(inline_tests)
(lint
(pps ppx_js_style -check-doc-comments))
Expand Down
1 change: 1 addition & 0 deletions stdlib/bopboard/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
core_unix.core_thread
core_unix.sys_unix
graphics
stdio
threads
tsdl
tsdl-image)
Expand Down
12 changes: 11 additions & 1 deletion stdlib/counter/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@
Stdio
-open
Cmdlang)
(libraries bopkit_block bopkit_sleeper core graphics threads unix)
(libraries
base
bit_utils
bopkit_block
bopkit_sleeper
cmdlang
core
graphics
stdio
threads
unix)
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
Expand Down
2 changes: 2 additions & 0 deletions stdlib/memories/bin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
Cmdlang)
(libraries
base
bit_utils
cmdlang
core
core_unix.core_thread
Expand All @@ -21,6 +22,7 @@
bopkit_sleeper
graphics
unix
stdio
threads)
(preprocess
(pps
Expand Down
2 changes: 1 addition & 1 deletion stdlib/pulse/bin/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(executables
(names pulse)
(libraries bopkit_pulse cmdliner cmdlang-to-cmdliner))
(libraries bopkit_pulse cmdlang-cmdliner-runner))

(install
(package bopkit)
Expand Down
2 changes: 1 addition & 1 deletion stdlib/pulse/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Stdio
-open
Cmdlang)
(libraries base bopkit_block bopkit_sleeper cmdlang core unix)
(libraries base bopkit_block bopkit_sleeper cmdlang core stdio unix)
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
Expand Down
2 changes: 1 addition & 1 deletion subleq.opam
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ depends: [
"mdx" {>= "2.4"}
"menhir" {>= "20220210"}
"parsing-utils" {>= "0.2.2"}
"pp" {>= "1.2.0"}
"pp" {>= "2.0.0"}
"pp-extended" {>= "0.0.2"}
"pp-log" {>= "0.0.8"}
"ppx_compare" {>= "v0.17" & < "v0.18"}
Expand Down
11 changes: 10 additions & 1 deletion tutorial/bdd/division/dune
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,16 @@
Stdio
-open
Cmdlang)
(libraries base cmdlang bopkit_block core graphics stdio unix threads)
(libraries
base
bit_utils
cmdlang
bopkit_block
core
graphics
stdio
unix
threads)
(preprocess
(pps
ppx_compare
Expand Down
2 changes: 1 addition & 1 deletion visa.opam
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ depends: [
"mdx" {>= "2.4"}
"menhir" {>= "20220210"}
"parsing-utils" {>= "0.2.2"}
"pp" {>= "1.2.0"}
"pp" {>= "2.0.0"}
"pp-extended" {>= "0.0.2"}
"pp-log" {>= "0.0.8"}
"ppx_compare" {>= "v0.17" & < "v0.18"}
Expand Down
Loading