carlohamalainen / ghc-imported-from

For a given Haskell source file, determine where a symbol is imported from
BSD 3-Clause "New" or "Revised" License
26 stars 2 forks source link

Support qualified import without "as" modifier #26

Open carlohamalainen opened 8 years ago

carlohamalainen commented 8 years ago

Extend the HaskellModule type to handle qualified imports without an as keyword, e.g.

import Foo
import qualified Foo.Bar.Baz
...
f = Foo.Bar.Baz.someFn 42

Looking up someFn should go to Foo.Bar.Baz, not some top-level mega-import module (like in the Yesod example).