[GHC] #11824: GHC error in desugarer lookup
Simon Peyton Jones
simonpj at microsoft.com
Wed Apr 13 12:55:35 UTC 2016
Ben
I'm offline, so can't reply on Phab.
Calling mkTypeableBinds in tcRnHsBootDecls isn't quite right, because it'll generate lots of *bindings* whereas all we want is the *Ids* in the GlobalValEnv.
(It's possible that tcg_binds is ignored in the boot-module case, but it's unsavoury to generate the bindings at all. They are generated when we process the main module.)
I suggest the easiest fix is, in mkModIdBinding and mkTypeableTyConBinds, guard the binding-generation with a test for whether isHsBootOrSig is true.
Simon
| -----Original Message-----
| From: ghc-tickets [mailto:ghc-tickets-bounces at haskell.org] On Behalf Of GHC
| Sent: 13 April 2016 12:06
| Cc: ghc-tickets at haskell.org
| Subject: Re: [GHC] #11824: GHC error in desugarer lookup
|
| #11824: GHC error in desugarer lookup
| -------------------------------------+-------------------------------------
| Reporter: darchon | Owner:
| Type: bug | Status: patch
| Priority: normal | Milestone: 8.0.1
| Component: Compiler | Version: 8.0.1-rc3
| Resolution: | Keywords:
| Operating System: Unknown/Multiple | Architecture:
| Type of failure: Compile-time | Unknown/Multiple
| crash | Test Case:
| Blocked By: | Blocking:
| Related Tickets: | Differential Rev(s): Phab:D2107,
| Wiki Page: | Phab:D2108
| -------------------------------------+-------------------------------------
| Changes (by bgamari):
|
| * status: new => patch
| * differential: => Phab:D2107, Phab:D2108
|
|
| --
| Ticket URL:
| <https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fghc.haskell.
| org%2ftrac%2fghc%2fticket%2f11824%23comment%3a6&data=01%7c01%7csimonpj%40064d
| .mgd.microsoft.com%7cd4862d0ed83c493164fb08d3638c0642%7c72f988bf86f141af91ab2
| d7cd011db47%7c1&sdata=JaXInqbrHs1nrAM9JsMUfX6J6hfbzJHI2k5KKRbH9i0%3d>
| GHC
| <https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.haskell.
| org%2fghc%2f&data=01%7c01%7csimonpj%40064d.mgd.microsoft.com%7cd4862d0ed83c49
| 3164fb08d3638c0642%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=S85zedvr8ceEm
| 4UeWtejgMl%2buRm4XMrgdWiHwcXDVuU%3d>
| The Glasgow Haskell Compiler
| _______________________________________________
| ghc-tickets mailing list
| ghc-tickets at haskell.org
| https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fmail.haskell.
| org%2fcgi-bin%2fmailman%2flistinfo%2fghc-
| tickets&data=01%7c01%7csimonpj%40064d.mgd.microsoft.com%7cd4862d0ed83c493164f
| b08d3638c0642%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=WywP4RhTbL5cEfl%2b
| xztoUe1EYuHPthiCb3vS2%2b%2fP4F8%3d
More information about the ghc-devs
mailing list