base-compat-0.8.2: A compatibility layer for base
Data.Bool.Compat
Synopsis
bool :: a -> a -> Bool -> a
Case analysis for the Bool type. bool a b p evaluates to a when p is False, and evaluates to b when p is True.
Bool
bool a b p
a
p
False
b
True
Since: 4.7.0.0