data-extra-2.5.4: Extra utilities for working on Data.* types.

Safe HaskellSafe-Inferred

Data.Bool.Extra

Description

Extra functions for dealing with Bool.

Synopsis

Documentation

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

bool false true p = if p then true else false

cond :: (a -> b) -> (a -> b) -> (a -> Bool) -> a -> bSource

cond false true p v = if p v then true v else false v