#6026: Unboxed operators have wrong fixity
----------------------------------------+-----------------------------------
    Reporter:  benl                     |       Owner:                          
   
        Type:  bug                      |      Status:  patch                   
   
    Priority:  normal                   |   Milestone:  7.8.1                   
   
   Component:  libraries/base           |     Version:  7.4.1                   
   
    Keywords:                           |          Os:  Unknown/Multiple        
   
Architecture:  Unknown/Multiple         |     Failure:  Incorrect result at 
runtime
  Difficulty:  Easy (less than 1 hour)  |    Testcase:                          
   
   Blockedby:                           |    Blocking:                          
   
     Related:                           |  
----------------------------------------+-----------------------------------
Changes (by michalt):

  * status:  new => patch


Comment:

 I've tried to follow the all the bullet points and everything seems to be
 working:
 {{{
 > ./inplace/bin/ghc-stage2 --interactive -XMagicHash
 GHCi, version 7.7.20121113: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Prelude> :m +GHC.Exts
 Prelude GHC.Exts> I# (1# +# 2# *# 3#)
 7
 Prelude GHC.Exts> D# (1.0## +## 2.0## *## 3.0##)
 7.0
 Prelude GHC.Exts> :i (+#)
 (+#) :: Int# -> Int# -> Int#    -- Defined in `GHC.Prim'
 infixl 6 +#
 Prelude GHC.Exts> :i (+##)
 (+##) :: Double# -> Double# -> Double#  -- Defined in `GHC.Prim'
 infixl 6 +##
 }}}
 In `genprimopcode` I've created a new `OptionFixity` since it seemed that
 the other
 options didn't seem to fit that well.

 Also, I've run `validate` and everything looks ok.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to