Skip to content

Commit 955983e

Browse files
committed
remember to normalise and localise filenames
1 parent f0c07b3 commit 955983e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Language/Fortran/Util/ModFile.hs

+3-2
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,12 @@ genUniqNameToFilenameMap :: FilePath -> ModFiles -> M.Map F.Name (String, Maybe
257257
genUniqNameToFilenameMap localPath m = M.unions . map perMF $ m
258258
where
259259
perMF mf = M.fromList
260-
$ [ (n, (fname, Nothing))
260+
$ [ (n, (normalise $ localPath </> fname, Nothing))
261261
| (_p, modEnv) <- M.toList localModuleMap
262262
, (n, _) <- M.elems modEnv ]
263263
-- decl map information
264-
<> [(n, (fname, Just srcName)) | (n, (_dc, srcName, _)) <- M.toList declMap ]
264+
<> [(n, (normalise $ localPath </> fname, Just srcName))
265+
| (n, (_dc, srcName, _)) <- M.toList declMap ]
265266

266267
where
267268
-- Make sure that we remove imported declarations so we can

0 commit comments

Comments
 (0)