[GHC] #1682: ghci Foo.hs should load the Foo.hs file interpreted
GHC
trac at galois.com
Tue Sep 11 09:36:59 EDT 2007
#1682: ghci Foo.hs should load the Foo.hs file interpreted
--------------------------------+-------------------------------------------
Reporter: iampure at gmail.com | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 6.8
Component: GHCi | Version: 6.7
Severity: normal | Keywords:
Difficulty: Unknown | Os: Unknown
Testcase: | Architecture: Unknown
--------------------------------+-------------------------------------------
ghc Foo.hs, where Foo.hs has a name X that is not exported.
ghci Foo.hs
Asking for the type of X now fails, since X is not in scope.
I would like to have that the latter operation does not fail. When one
asks for the Foo.hs file, the Foo.hs file should be loaded interpreted.
When one asks for the Foo module, the same should happen. When one
explicitly asks for Foo.o or Foo.hi, the compiled version should be
loaded.
The rationale for all this is that ghci is used to explore code. In the
rare case that one for example compiles somebody else's project and want
to look around a bit (ask for types for example), one does not want to
touch(1) every file by hand first.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1682>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list