[GHC] #8280: Deriving Show for Word#

GHC ghc-devs at haskell.org
Sun Sep 22 18:10:16 CEST 2013


#8280: Deriving Show for Word#
----------------------------------------------+----------------------------
        Reporter:  monoidal                   |            Owner:  simonpj
            Type:  bug                        |           Status:  closed
        Priority:  highest                    |        Milestone:  7.8.1
       Component:  Compiler                   |          Version:  7.7
      Resolution:  fixed                      |         Keywords:
Operating System:  Unknown/Multiple           |     Architecture:
 Type of failure:  None/Unknown               |  Unknown/Multiple
       Test Case:  deriving/should_run/T8280  |       Difficulty:  Unknown
        Blocking:                             |       Blocked By:
                                              |  Related Tickets:
----------------------------------------------+----------------------------

Comment (by simonmar):

 There are a few things I'm confused about here.

 1. The commit log says "make Word# a wired-in type", but actually it makes
 `Word` a wired-in type. (`Word#` is a primitive type)
 2. Why does the example program need to know anything about `W#`, the
 constructor for `Word`, when it only mentioned `Word#`?
 3. Why does `Word` need to be a wired-in type at all?

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



More information about the ghc-tickets mailing list