Skip to content

Commit

Permalink
Move model in a qualified subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
xvw committed Jul 31, 2024
1 parent ca1383e commit af36a9a
Show file tree
Hide file tree
Showing 21 changed files with 502 additions and 575 deletions.
8 changes: 4 additions & 4 deletions lib/action.ml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let init_chain (module R : Sigs.RESOLVER) =
let* cache = Yocaml.Action.restore_cache ~on:`Target R.Target.cache in
let* chain =
Yocaml_yaml.Eff.read_file_as_metadata
(module Model.Chain)
(module Model.Chain.Metadata)
~on:`Source R.Source.chain
in
let+ cache, members =
Expand All @@ -34,7 +34,7 @@ let init_chain (module R : Sigs.RESOLVER) =
(cache, member :: state))
cache
in
(cache, Chain.init ~chain ~members)
(cache, Model.Chain.init ~chain ~members)

let init_message (module R : Sigs.RESOLVER) =
Yocaml.Eff.logf ~level:`Debug "ring.muhokama [source: `%a`, target: `%a`]"
Expand All @@ -48,7 +48,7 @@ let generate_opml (module R : Sigs.RESOLVER) chain =
R.track_common_dependencies
>>> Yocaml.Pipeline.track_file R.Source.members
>>> const chain
>>> Chain.to_opml)
>>> Model.Chain.to_opml)

let process_chain_member (module R : Sigs.RESOLVER) pred_or_succ current_member
target_member =
Expand All @@ -69,7 +69,7 @@ let process_chain_member (module R : Sigs.RESOLVER) pred_or_succ current_member

let process_chain (module R : Sigs.RESOLVER) chain =
let process_chain_member = process_chain_member (module R) in
Yocaml.Action.batch_list (Chain.to_list chain)
Yocaml.Action.batch_list (Model.Chain.to_list chain)
(fun (curr, (pred, succ)) cache ->
let open Yocaml.Eff in
cache
Expand Down
2 changes: 2 additions & 0 deletions lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
(synopsis "The name [gem] is because it's set with a ring. lol")
(modules_without_implementation sigs)
(libraries yocaml yocaml_yaml yocaml_syndication yocaml_jingoo yocaml_omd))

(include_subdirs qualified)
46 changes: 0 additions & 46 deletions lib/index.ml

This file was deleted.

11 changes: 0 additions & 11 deletions lib/index.mli

This file was deleted.

Loading

0 comments on commit af36a9a

Please sign in to comment.