unused record fields

Ian Lynagh igloo at earth.li
Fri Oct 15 18:52:06 EDT 2010


On Fri, Oct 15, 2010 at 09:04:20PM +0400, Serge D. Mechveliani wrote:
> 
>   module TT where
>   data T = T {t1, t2 :: Int}
> 
>   f d = x  where
>            T {t1 = x, ..} = d
> 
> ghc-6.12.2  warns about unused value of  t2.

Thanks for the report; filed as:
    http://hackage.haskell.org/trac/ghc/ticket/4404


Thanks
Ian



More information about the Glasgow-haskell-bugs mailing list