Added more recognised suffixes to knock off in #USE directives
This commit is contained in:
parent
427938039c
commit
081e4f79d4
|
@ -207,7 +207,7 @@ handleUse m (modName:_)
|
||||||
-- | If a module name has a suffix, strip it
|
-- | If a module name has a suffix, strip it
|
||||||
mangleModName :: String -> String
|
mangleModName :: String -> String
|
||||||
mangleModName mod
|
mangleModName mod
|
||||||
= if ".occ" `isSuffixOf` mod || ".inc" `isSuffixOf` mod
|
= if any (`isSuffixOf` mod) [".inc", ".lib", ".occ", ".tce"]
|
||||||
then (reverse . drop 4 . reverse) mod
|
then (reverse . drop 4 . reverse) mod
|
||||||
else mod
|
else mod
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user