Skip to content

Commit

Permalink
Fix merlin after rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Ulysse Gérard <[email protected]>
  • Loading branch information
voodoos committed Dec 22, 2022
1 parent 691387c commit a0b1dc2
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/dune_rules/merlin.ml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,18 @@ module Processed = struct
}

let dyn_of_config
{ stdlib_dir; obj_dirs; src_dirs; flags; extensions; melc_flags } =
{ build_dir
; stdlib_dir
; obj_dirs
; src_dirs
; flags
; extensions
; melc_flags
} =
let open Dyn in
record
[ ("stdlib_dir", option Path.to_dyn stdlib_dir)
[ ("build_dir", Path.to_dyn build_dir)
; ("stdlib_dir", option Path.to_dyn stdlib_dir)
; ("obj_dirs", Path.Set.to_dyn obj_dirs)
; ("src_dirs", Path.Set.to_dyn src_dirs)
; ("flags", list string flags)
Expand Down Expand Up @@ -120,7 +128,14 @@ module Processed = struct
let serialize_path = Path.to_absolute_filename

let to_sexp ~opens ~pp
{ build_dir; stdlib_dir; obj_dirs; src_dirs; flags; extensions; melc_flags } =
{ build_dir
; stdlib_dir
; obj_dirs
; src_dirs
; flags
; extensions
; melc_flags
} =
let make_directive tag value = Sexp.List [ Atom tag; value ] in
let make_directive_of_path tag path =
make_directive tag (Sexp.Atom (serialize_path path))
Expand Down

0 comments on commit a0b1dc2

Please sign in to comment.