[GHC] #15882: :load in ghci should expose the entire namespace of a module
GHC
ghc-devs at haskell.org
Fri Dec 14 18:05:46 UTC 2018
#15882: :load in ghci should expose the entire namespace of a module
-------------------------------------+-------------------------------------
Reporter: EyalLotem | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 8.6.2
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 adamse):
I think you're describing the current behaviour:
{{{
$ cat T.hs
module T (f) where
import Data.Monoid
f :: Int
f = 2
g :: Double
g = 2
$ ghci
GHCi, version 8.6.1: http://www.haskell.org/ghc/ :? for help
:l Loaded GHCi configuration from /Users/adam/.ghci
Prelude> :l T
[1 of 1] Compiling T ( T.hs, interpreted )
...
Ok, one module loaded.
*T> g
2.0
it :: Double
*T> :t Sum
Sum :: a -> Sum a
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15882#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list