FR
PréludeChargé par défaut — aucun import nécessaire.

Boolean operations

Synopsis
(&&) : Bool -> Lazy Bool -> Bool

Short-circuit conjunction: if the first argument is False, the second is never evaluated (Lazy).

(||) : Bool -> Lazy Bool -> Bool

Short-circuit disjunction: if the first argument is True, the second is never evaluated (Lazy).

force : Lazy a -> a

Force a lazy value. In practice, oppi evaluates Lazy arguments only when the value is actually used.

ifThenElse : Bool -> Lazy a -> Lazy a -> a

Conditional: the unused branch is never evaluated (Lazy). Used by the if/then/else notation below.

otherwise : Bool

Always true — the "else" guard of guarded definitions:

abs n | n < 0 = -n | otherwise = n