Don't add extra dependency for the same module

This commit is contained in:
Iavor Diatchki 2021-03-12 11:50:35 -08:00
parent fad47f57da
commit c1914ccc60

View File

@ -293,7 +293,7 @@ addDep :: Name -> RenameM ()
addDep x =
do cur <- getCurMod
deps <- case nameInfo x of
Declared m _ | cur `containsModule` m ->
Declared m _ | cur /= m && cur `containsModule` m ->
do mb <- nestedModuleOrig m
pure case mb of
Just y -> Set.fromList [x,y]