Skip to content

Commit

Permalink
undo; last commit was a mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
dorchard committed Sep 20, 2024
1 parent 955983e commit fd46091
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Language/Fortran/Util/ModFile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,11 @@ genUniqNameToFilenameMap :: FilePath -> ModFiles -> M.Map F.Name (String, Maybe
genUniqNameToFilenameMap localPath m = M.unions . map perMF $ m
where
perMF mf = M.fromList
$ [ (n, (normalise $ localPath </> fname, Nothing))
$ [ (n, (fname, Nothing))
| (_p, modEnv) <- M.toList localModuleMap
, (n, _) <- M.elems modEnv ]
-- decl map information
<> [(n, (normalise $ localPath </> fname, Just srcName))
| (n, (_dc, srcName, _)) <- M.toList declMap ]
<> [(n, (fname, Just srcName)) | (n, (_dc, srcName, _)) <- M.toList declMap ]

where
-- Make sure that we remove imported declarations so we can
Expand Down

0 comments on commit fd46091

Please sign in to comment.