[GHC] #9006: GHC accepts import of private data constructor if it has the same name as the type

GHC ghc-devs at haskell.org
Fri Apr 18 23:30:07 UTC 2014


#9006: GHC accepts import of private data constructor if it has the same name as
the type
------------------------------------------------+--------------------------
        Reporter:  Lemming                      |            Owner:
            Type:  bug                          |           Status:  closed
        Priority:  normal                       |        Milestone:
       Component:  Compiler                     |          Version:  7.8.2
      Resolution:  fixed                        |         Keywords:
Operating System:  Unknown/Multiple             |     Architecture:
 Type of failure:  GHC accepts invalid program  |  Unknown/Multiple
       Test Case:  rename/should_fail/T9006     |       Difficulty:
        Blocking:                               |  Unknown
                                                |       Blocked By:
                                                |  Related Tickets:
------------------------------------------------+--------------------------
Changes (by simonpj):

 * status:  new => closed
 * testcase:   => rename/should_fail/T9006
 * resolution:   => fixed


Comment:

 Excellent point, thank you.

 We could merge the fix to the 7.8 branch, but I'm not sure it's worth the
 bother

 Simon

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9006#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list