Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in linking to functions in a different module #253

Closed
ghc-mirror opened this issue May 8, 2014 · 3 comments
Closed

Bug in linking to functions in a different module #253

ghc-mirror opened this issue May 8, 2014 · 3 comments
Assignees

Comments

@ghc-mirror
Copy link

Original reporter: NeilMitchell

Given:

-- M1.hs --
module M1 where
-- | See 'M2.bar'.
foo :: Int
foo = 0

-- M2.hs --
module M2 where
-- | Comment
bar :: Int
bar = 0

The link in M1 points at #t:bar rather than #v:bar. That is wrong. For 100's of examples of this bug in action see http://hackage.haskell.org/packages/archive/shake/0.10.6/doc/html/Development-Shake.html.

@ghc-mirror ghc-mirror self-assigned this May 8, 2014
@ghc-mirror
Copy link
Author

Original reporter: david.waern@

The bug is due to a change in GHC's dataTcOccs function. If we do what the old version of dataTcOccs did we should be fine. See GHC commit 5bfd8933.

@ghc-mirror
Copy link
Author

Original reporter: fuuzetsu@

Fixed, should make it to HEAD whenever the large parser merge happens. Could cherry pick it if we're in an extreme hurry but I don't think that's necessary.

I'll close the ticket once it makes it into HEAD.

@ghc-mirror
Copy link
Author

Original reporter: fuuzetsu@

Fixed in HEAD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant