#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  |  
---------------------+------------------------------------------------------
Comment (by claus):

 Hm, I'm sure I tested this against older GHCi versions at the time (the
 example is a stripped down version of the real `.ghci/ghci.conf` I've been
 using for quite some time). But I can't seem to reproduce a working
 version with older GHCis now, so closing is right.

 You probably meant it the other way round: bind `msg` at the time `grep`
 is run, rather than defined. Thanks, that also works in the current
 version of my full script, but prevents reuse of the function represented
 here by `msg` in other commands (cross-stage persistence in GHCi scripts
 is tricky, not least because of the awkward syntax).

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2400#comment:2>
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

Reply via email to