#2736: Add bool to Data.Bool
---------------------------------+------------------------------------------
Reporter: guest | Owner:
Type: task | Status: new
Priority: normal | Component: libraries/base
Version: | Severity: minor
Keywords: | Testcase:
Architecture: Unknown/Multiple | Os: Unknown/Multiple
---------------------------------+------------------------------------------
The function either is in Data.Either and maybe is in Data.Maybe. The
function if' is a referenced function in the point-free module, but it
doesn't exist, and if is a keyword, not a function. Since Data.Bool is a
library module, and it fits the form of the two modules mentioned earlier,
it should have a function bool. Its exact form may need more discussion,
but in keeping with the other two, I propose:
bool :: a -> a -> Bool -> a
bool false true False = false
bool false true True = true
(proposed by BMeph, 2 November 2008)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2736>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs