Fix bug #3165 (:history throws irrefutable pattern failed)
authorpepeiborra@gmail.com <unknown>
Mon, 15 Nov 2010 22:36:23 +0000 (22:36 +0000)
committerpepeiborra@gmail.com <unknown>
Mon, 15 Nov 2010 22:36:23 +0000 (22:36 +0000)
commitadd9b7f13aad3a6ec5fdb4512c79ee9c5d95b3d4
treebf791d3cf255874763f03876a980b14240865164
parent6bb8d64a971afce310df3349e8767b790c2845ee
Fix bug #3165 (:history throws irrefutable pattern failed)

I ran across this bug and took the time to fix it, closing
a long time due TODO in InteractiveEval.hs

Instead of looking around to find the enclosing declaration
of a tick, this patch makes use of the information already collected during the
coverage desugaring phase
compiler/deSugar/Coverage.lhs
compiler/main/GHC.hs
compiler/main/HscTypes.lhs
compiler/main/InteractiveEval.hs
ghc/InteractiveUI.hs