#7424: Add Data.Bits instance for Bool
-----------------------------+----------------------------------------------
Reporter:  Aninhumer         |          Owner:                  
    Type:  feature request   |         Status:  new             
Priority:  normal            |      Component:  libraries/base  
 Version:  7.6.1             |       Keywords:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
 Failure:  None/Unknown      |      Blockedby:                  
Blocking:                    |        Related:                  
-----------------------------+----------------------------------------------
 Given the common use cases for Data.Bits, it seems strange that there is
 no instance for Bool. Previously, the Num superclass was a reason not to
 include one, as there are valid objections to a Num Bool instance.
 However, this superclass requirement has now been removed, so I think
 adding a Bits Bool instance would be a good idea.

 I have attached a local implementation which I am using, but it may not
 entirely match the intended semantics of Bits.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7424>
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