[GHC] #9035: ghci sometimes displays Word32 as Word64

GHC ghc-devs at haskell.org
Mon May 19 05:28:27 UTC 2014


#9035: ghci sometimes displays Word32 as Word64
------------------------------------------------+--------------------------
        Reporter:  MikeIzbicki                  |            Owner:
            Type:  bug                          |           Status:  closed
        Priority:  normal                       |        Milestone:
       Component:  GHCi                         |          Version:  7.8.2
      Resolution:  invalid                      |         Keywords:
Operating System:  Linux                        |     Architecture:  x86_64
 Type of failure:  Incorrect result at runtime  |  (amd64)
       Test Case:                               |       Difficulty:
        Blocking:                               |  Unknown
                                                |       Blocked By:
                                                |  Related Tickets:
------------------------------------------------+--------------------------

Comment (by MikeIzbicki):

 Ahh, I see.  I missed the clause in the documentation that says you can't
 convert between floating point and integer types.  I have a handful of
 code that needs fixing now :(

 Just for my own curiosity, I'd like to read the spot in GHC that prevents
 this particular usage of unsafeCoerce.  Any idea which files I should look
 at?

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


More information about the ghc-tickets mailing list