Skip to content

refactor: deforest a set conversion#6473

Merged
rgrinberg merged 1 commit intomainfrom
ps/rr/refactor__deforest_a_set_conversion
Nov 15, 2022
Merged

refactor: deforest a set conversion#6473
rgrinberg merged 1 commit intomainfrom
ps/rr/refactor__deforest_a_set_conversion

Conversation

@rgrinberg
Copy link
Copy Markdown
Member

also leads to less code

Signed-off-by: Rudi Grinberg me@rgrinberg.com

ps-id: a21b192a-efe7-4da3-968f-1c78c1a2cc42

also leads to less code

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

ps-id: a21b192a-efe7-4da3-968f-1c78c1a2cc42
@rgrinberg rgrinberg requested a review from emillon November 14, 2022 23:23
let files = Path.Source.Set.of_list files |> Path.Source.Set.to_list in
let by_targets =
List.fold_left files ~init:by_targets ~f:(fun map fn ->
let files = Path.Source.Set.of_list files in
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I guess this is to get rid of duplicates?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@rgrinberg rgrinberg merged commit 994f684 into main Nov 15, 2022
jchavarri added a commit to jchavarri/dune that referenced this pull request Nov 16, 2022
* main:
  test(melange): demonstrate error in melange compilation trying to build @ALL (ocaml#6485)
  chore(nix): make it faster to get melange (ocaml#6347)
  refactor: status db style tweaks (ocaml#6478)
  fix: improve error message for status db (ocaml#6479)
  refactor: remove unused [flags] parameter (ocaml#6480)
  refactor(ctypes): remove pesky aliases (ocaml#6482)
  chore: tweak `hacking.rst` following `dune.exe` move to _boot (ocaml#6484)
  feature(coq): automatic detection of native
  chore(coq): bump Coq lang to 0.7
  test: disable formatting for a single dune file (ocaml#6465)
  refactor: clean up module compilation (ocaml#6461)
  doc: add button to copy code blocks in Dune manual (ocaml#6428)
  refactor: deforest a set conversion (ocaml#6473)
  refactor: remove temporary map used for sorting (ocaml#6472)
  fix(melange): handle include_subdirs unqualified (ocaml#6475)
jchavarri added a commit to jchavarri/dune that referenced this pull request Nov 16, 2022
* main:
  test(melange): demonstrate error in melange compilation trying to build @ALL (ocaml#6485)
  chore(nix): make it faster to get melange (ocaml#6347)
  refactor: status db style tweaks (ocaml#6478)
  fix: improve error message for status db (ocaml#6479)
  refactor: remove unused [flags] parameter (ocaml#6480)
  refactor(ctypes): remove pesky aliases (ocaml#6482)
  chore: tweak `hacking.rst` following `dune.exe` move to _boot (ocaml#6484)
  feature(coq): automatic detection of native
  chore(coq): bump Coq lang to 0.7
  test: disable formatting for a single dune file (ocaml#6465)
  refactor: clean up module compilation (ocaml#6461)
  doc: add button to copy code blocks in Dune manual (ocaml#6428)
  refactor: deforest a set conversion (ocaml#6473)
  refactor: remove temporary map used for sorting (ocaml#6472)
  fix(melange): handle include_subdirs unqualified (ocaml#6475)
@Alizter Alizter deleted the ps/rr/refactor__deforest_a_set_conversion branch November 26, 2022 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants