base-4.3.1.0: Basic libraries

Portabilityportable
Stabilityexperimental
Maintainerlibraries@haskell.org

Data.Bool

Description

The Bool type and related functions.

Synopsis

Booleans

data Bool Source

Constructors

Instances

Operations

(&&) :: Bool -> Bool -> Bool Source

Boolean "and"

(||) :: Bool -> Bool -> Bool Source

Boolean "or"

not :: Bool -> Bool Source

Boolean "not"

otherwise :: Bool Source

otherwise is defined as the value True . It helps to make guards more readable. eg.

 f x | x < 0 = ...
 | otherwise = ...

AltStyle によって変換されたページ (->オリジナル) /