[GHC] #10827: GHCi should support interpeting multiple packages/units with separate DynFlags

GHC ghc-devs at haskell.org
Sun Nov 8 06:17:58 UTC 2015


#10827: GHCi should support interpeting multiple packages/units with separate
DynFlags
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  GHC API           |              Version:  7.11
      Resolution:                    |             Keywords:  backpack
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 mgsloan):

 A couple other things that would be needed for proper multi-package ghci:

 1. Per-package working directory, so that we can load files with relative
 paths, via TH.  I'm imagining that this would work by changing the CWD
 before compiling a file or before running each splice.  If we're allowing
 this bit of environment to vary, it also would be consistent to support
 different environment variables.  I've never seen TH depend on that,
 though, so not very important..

 2. Per-package restriction of dependencies (-hide-all-packages /
 -package).  Otherwise, it couldn't deal with the case where two of your
 packages depend on the same module name, imported from different packages.

 3. Support for package qualified imports amongst your local packages.

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


More information about the ghc-tickets mailing list