bools-0.1.0: Functions for dealing with bools

Safe HaskellSafe-Inferred

Bools

Description

Functions for dealing with bools.

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

module Data.Bool