[GHC] #13321: Importing a bundled pattern "infects" all other imports of that pattern

GHC ghc-devs at haskell.org
Thu Feb 23 15:24:53 UTC 2017


#13321: Importing a bundled pattern "infects" all other imports of that pattern
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  low               |            Milestone:
       Component:  Compiler (Type    |              Version:  8.0.1
  checker)                           |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 Replying to [comment:1 mpickering]:
 > What is a `unit`?

 A backpack thing. You can save this source as a single file `U.bkp` and
 build it with `ghc --backpack U.bkp`. In this case it's equivalent to just
 writing six `.hs` files. (I just learned about this from this ticket.)

 > How can `N` be bundled with anything (it isn't a pattern synonym)?

 It should read "When we look at the interface for D, we see that X is
 bundled with G", I assume.

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


More information about the ghc-tickets mailing list