#1531: _result can get bound to the wrong value in a breakpoint
------------------------+---------------------------------------------------
  Reporter:  mnislaih   |          Owner:  [EMAIL PROTECTED]
      Type:  bug        |         Status:  new                      
  Priority:  low        |      Milestone:  6.8                      
 Component:  GHCi       |        Version:  6.6.1                    
  Severity:  normal     |       Keywords:                           
Difficulty:  Unknown    |             Os:  Unknown                  
  Testcase:  result001  |   Architecture:  Unknown                  
------------------------+---------------------------------------------------
Using test result001 in the example below.
 `:list` shows that the tick is wrapping `map id xs` (it is not appreciated
 here, but the said subexpression is highlighted in ghci).

 However `_result` seems to be bound to the value of `f xs`

 {{{
 *Main> :b 1 20
 Breakpoint 1 activated at result001.hs:1:12-20
 *Main> f "abc"
 Stopped at result001.hs:1:12-20
 _result :: Bool
 xs :: [a]
 ... [result001.hs:1:12-20] *Main> :list
 1  f xs = case map id xs of
 2           [] -> True
 ... [result001.hs:1:12-20] *Main> :fo _result
 *** Ignoring breakpoint
 _result = False
 }}}

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