GHC | 15 May 18:13 2012

#6098: debugger does not know the correct type for a newtype field

#6098: debugger does not know the correct type for a newtype field
-----------------------------------------+----------------------------------
 Reporter:  phercek                      |          Owner:                   
     Type:  bug                          |         Status:  new              
 Priority:  normal                       |      Component:  GHCi             
  Version:  7.5                          |       Keywords:  debugger bindings
       Os:  Linux                        |   Architecture:  x86_64 (amd64)   
  Failure:  Incorrect result at runtime  |       Testcase:                   
Blockedby:                               |       Blocking:                   
  Related:                               |  
-----------------------------------------+----------------------------------
 This bug is in 7.4.1. I think it was also in 7.0.3. It is also in the
 current head:[[BR]]
 commit 921530b477867edb5158e4ad5bbbdb5c7c531c97[[BR]]
 Date:   Tue May 15 10:32:58 2012 +0100

 Here is the console log. Notice that the type of allItems is resolved as
 TWrapper but it should be [Int]. Expressions in conditional breakpoints
 are failing because of this.

 {{{
 18:06 tm=3:2 st=0 peter <at> phnm ~/haskell/ghc-working/inplace/lib
 1035> cat bindings-bug.hs
 newtype TWrapper = Wrapper
   { mItems :: [Int]
   } deriving Show

 main = print $ test $ Wrapper [1]

 test Wrapper{ mItems = allItems } = id $
(Continue reading)

GHC | 22 May 01:22 2012

Re: #6098: debugger does not know the correct type for a newtype field

#6098: debugger does not know the correct type for a newtype field
----------------------------------+-----------------------------------------
    Reporter:  phercek            |       Owner:                             
        Type:  bug                |      Status:  new                        
    Priority:  high               |   Milestone:  7.6.1                      
   Component:  GHCi               |     Version:  7.5                        
    Keywords:  debugger bindings  |          Os:  Linux                      
Architecture:  x86_64 (amd64)     |     Failure:  Incorrect result at runtime
  Difficulty:  Unknown            |    Testcase:                             
   Blockedby:                     |    Blocking:                             
     Related:                     |  
----------------------------------+-----------------------------------------
Changes (by simonmar):

  * priority:  normal => high
  * difficulty:  => Unknown
  * milestone:  => 7.6.1

Comment:

 Thanks for the report, we'll take a look.

--

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6098#comment:1>
GHC | 17 Nov 18:17 2012

Re: #6098: debugger does not know the correct type for a newtype field

#6098: debugger does not know the correct type for a newtype field
----------------------------------+-----------------------------------------
    Reporter:  phercek            |       Owner:                             
        Type:  bug                |      Status:  new                        
    Priority:  high               |   Milestone:  7.8.1                      
   Component:  GHCi               |     Version:  7.5                        
    Keywords:  debugger bindings  |          Os:  Linux                      
Architecture:  x86_64 (amd64)     |     Failure:  Incorrect result at runtime
  Difficulty:  Unknown            |    Testcase:                             
   Blockedby:                     |    Blocking:                             
     Related:                     |  
----------------------------------+-----------------------------------------
Changes (by igloo):

  * milestone:  7.6.2 => 7.8.1

--

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6098#comment:3>

Gmane