Resolve local imports in the GHC syntax checker