[GHC] #6135: Unboxed Booleans

GHC cvs-ghc at haskell.org
Thu Mar 14 04:42:59 CET 2013


#6135: Unboxed Booleans
---------------------------------+------------------------------------------
    Reporter:  benl              |       Owner:  jstolarek       
        Type:  feature request   |      Status:  patch           
    Priority:  normal            |   Milestone:  7.8.1           
   Component:  Compiler          |     Version:  7.4.1           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:  #605              |  
---------------------------------+------------------------------------------

Comment(by simonmar):

 I'd rather see the existing primops changed to return `Int#` (or `Word#`)
 than to add new primops.  There's no need to have both.  But of course
 it's a deeper change - we'd have to add wrappers that implement the old
 primops and make sure that we have enough RULEs to get rid of any extra
 `tagToEnum#` calls.  But I think it would ultimately be better that way,
 the Bool-returning primops are a hack.

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



More information about the ghc-tickets mailing list