#2400: location-dependent scope issue with ghci.conf
---------------------+------------------------------------------------------
Reporter: claus | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: GHCi | Version: 6.9
Severity: normal | Resolution: invalid
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Windows |
---------------------+------------------------------------------------------
Changes (by simonmar):
* status: new => closed
* difficulty: => Unknown
* resolution: => invalid
Comment:
This doesn't look like a bug to me. Existing bindings are discarded when
a module is loaded, so the binding `msg` is not available after loading
`Main`. To avoid this you need to refer to `msg` by name rather than by a
string, i.e. bind it at the time `grep` is defined, rather than when
`grep` is run.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2400#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs