[GHC] #9693: Reloading GHCi with Template Haskell names can panic GHC
GHC
ghc-devs at haskell.org
Tue Oct 28 15:34:56 UTC 2014
#9693: Reloading GHCi with Template Haskell names can panic GHC
-------------------------------------+-------------------------------------
Reporter: maxs | Owner:
Type: bug | Status: infoneeded
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.3
Resolution: | Keywords:
Operating System: | Architecture: Unknown/Multiple
Unknown/Multiple | Difficulty: Unknown
Type of failure: GHC | Blocked By:
rejects valid program | Related Tickets:
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Changes (by goldfire):
* status: new => infoneeded
Comment:
I can't reproduce this problem. When I load your original files (that is,
with `newName`, not `mkName`), I get this:
{{{
Duplicate exact Name ‘X’
Probable cause: you used a unique Template Haskell name (NameU),
perhaps via newName, but bound it multiple times
If that's it, then -ddump-splices might be useful
}}}
The error seems reasonable to me: the name is bound both as a type and as
a data constructor. I'm also on GHC 7.8.3 on a Mac. Can you try again to
reproduce the problem? Maybe your GHCi state had something else going
on... perhaps a `ghci.conf` file?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9693#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list