base-compat-0.8.0: A compatibility layer for base

Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Bool.Compat

Synopsis

Documentation

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.

Since: 4.7.0.0