Skip to content

Commit 470e9c1

Browse files
committed
refactor(module): normalize paths in the decoder
Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
1 parent b448778 commit 470e9c1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/dune_rules/module.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,11 @@ module Source = struct
137137
let decode ~dir =
138138
let open Dune_lang.Decoder in
139139
fields
140-
@@ let+ path = field "path" Module_name.Path.decode
140+
@@ let+ path =
141+
let+ path = field "path" Module_name.Path.decode in
142+
logical_path_of_trie_path path
141143
and+ intf = field_o "intf" (File.decode ~dir)
142144
and+ impl = field_o "impl" (File.decode ~dir) in
143-
let path = logical_path_of_trie_path path in
144145
{ path; files = { Ml_kind.Dict.intf; impl } }
145146
;;
146147

0 commit comments

Comments
 (0)