base-compat-0.4.1: A compatibility layer for base

Safe HaskellSafe-Inferred

Data.Bool.Compat

Synopsis

Documentation

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.

Since: 4.7.0.0