packages feed

live-sequencer-0.0: data/Bool.hs

module Bool where

ifThenElse :: Bool -> a -> a -> a ;
ifThenElse True  y _ = y ;
ifThenElse False _ n = n ;


not :: Bool -> Bool ;
not False = True ;
not True = False ;


infixr 3 && ;

(&&) :: Bool -> Bool -> Bool ;
False && _ = False ;
True && x = x ;


infixr 2 || ;

(||) :: Bool -> Bool -> Bool ;
True || _ = True ;
False || x = x ;