[GHC] #8280: Deriving Show for Word#

GHC ghc-devs at haskell.org
Fri Sep 13 02:15:48 CEST 2013


#8280: Deriving Show for Word#
------------------------------------+-------------------------------------
       Reporter:  monoidal          |             Owner:
           Type:  bug               |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Compiler          |           Version:  7.6.3
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 {{{
 {-# LANGUAGE MagicHash #-}
 import GHC.Prim
 data A = A Word# deriving Show
 }}}

 This works in 7.6.3, but 7.7 gives

 {{{
     Can't find interface-file declaration for data constructor
 GHC.Types.W#
       Probable cause: bug in .hi-boot file, or inconsistent .hi file
       Use -ddump-if-trace to get an idea of which file caused the error
 }}}

 The same file works if Word# is replaced by Int#.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8280>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list