Ticket #1531 (closed bug: fixed)
_result can get bound to the wrong value in a breakpoint
| Reported by: | mnislaih | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | _|_ |
| Component: | GHCi | Version: | 6.7 |
| Keywords: | Cc: | phercek@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | result001 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
