base-compat-0.4.0: A compatibility layer for base

Data.Bool.Compat

Synopsis

bool :: a -> a -> Bool -> aSource

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