#3165: :history throws "Irrefutable pattern failed" exception
---------------------------+------------------------------------------------
Reporter: greenrd | Owner: igloo
Type: bug | Status: closed
Priority: normal | Milestone: 6.12.1
Component: GHCi | Version: 6.10.2
Resolution: fixed | Keywords:
Testcase: | Blockedby:
Difficulty: Unknown | Os: Linux
Blocking: | Architecture: x86
Failure: None/Unknown |
---------------------------+------------------------------------------------
Comment(by mnislaih):
Replying to [comment:12 simonmar]:
> Replying to [comment:10 mnislaih]:
>
> > The previous output was nicer to the user, but one could argue that
the new output is more correct.
> > In my opinion it is not a big deal, and changing it to behave as
before would involve having a hybrid approach to resolving the enclosing
decl of a tick, which does not sound appealing at all.
> >
> > So I would say the new output is OK.
>
> I think it's a bit of a shame to lose that, since the breakpoint really
is on the top-level function, not the module. Why are these outer
breakpoints not attributed to the function any more?
They are not attributed anymore because they are not "below" the outer
function when traversing the AST. I don't know how to restore the previous
behaviour for every non-attributed breakpoint, but probably the common
case of a breakpoint surrounding a top-level function can be dealt with
easily. I will look at this as soon as I find some time, hopefully this
week.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3165#comment:13>
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