elm-lens
elm-lens copied to clipboard
Reference counting is wrong when multiple modules are imported with the same alias
I have a module that import Tangram with:
import Tangram.Model as Tangram
import Tangram.Types as Tangram
import Tangram.Update as Tangram
import Tangram.View as Tangram
and use
Tangram.subscriptions
that is coming from Tangram.Model
but in Tangram.Model it says that external references are 0 while it should say 1.
Maybe the plug-in is not taking in consideration the multiple import with the same name?
Changing the import to
import Tangram.Model
import Tangram.Types
import Tangram.Update
import Tangram.View
the counting is correct