Ticket #253 (closed defect: fixed)

Opened 22 months ago

Last modified 22 months ago

Bug in linking to functions in a different module

Reported by: NeilMitchell Owned by: Fūzetsu
Priority: major Milestone:
Version: Keywords:
Cc: NeilMitchell



-- 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.

Change History

Changed 22 months ago by NeilMitchell

  • cc NeilMitchell added

Changed 22 months ago by Fūzetsu

  • owner set to Fūzetsu
  • status changed from new to assigned
  • version 2.12.0 deleted

Changed 22 months ago by 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.

Changed 22 months ago by Fūzetsu

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.

Changed 22 months ago by Fūzetsu

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in HEAD.

Note: See TracTickets for help on using tickets.