[GHC] #15882: :load in ghci should expose the entire namespace of a module

GHC ghc-devs at haskell.org
Fri Nov 9 18:18:02 UTC 2018


#15882: :load in ghci should expose the entire namespace of a module
-------------------------------------+-------------------------------------
           Reporter:  EyalLotem      |             Owner:  (none)
               Type:  feature        |            Status:  new
  request                            |
           Priority:  normal         |         Milestone:  8.6.3
          Component:  GHCi           |           Version:  8.6.2
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 When using "import" in ghci, only exported names are available.

 When using :load, the use case is typically for "toying around" or testing
 a module. In that case, the export list restrictions are much less useful.

 There is currently no way to just expose the same namespace context of the
 code in a module in ghci, and having :load do that sounds like it would be
 very useful. The ordinary "import" namespace semantics are after all
 available too.

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


More information about the ghc-tickets mailing list