Ever found yourself in need of a
if-then-else replacement that can be partially applied? Something you can pass to higher order functions? In short, ever needed this function?
bool :: a -> a -> Bool -> a bool x _ False = x bool _ y True = y
Well, I did. So I’m very happy to announce my first public Haskell library: bool-extras!