15 May 2012 18:13
#6098: debugger does not know the correct type for a newtype field
GHC <cvs-ghc <at> haskell.org>
2012-05-15 16:13:19 GMT
2012-05-15 16:13:19 GMT
#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)
RSS Feed