module PlutusTx.Bool (Bool (..), (&&), (||), not, otherwise) where
import Prelude (Bool (..), otherwise)
infixr 3 &&
(&&) :: Bool -> Bool -> Bool
&& :: Bool -> Bool -> Bool
(&&) Bool
l Bool
r = if Bool
l then Bool
r else Bool
False
{-# OPAQUE (&&) #-}
infixr 2 ||
(||) :: Bool -> Bool -> Bool
|| :: Bool -> Bool -> Bool
(||) Bool
l Bool
r = if Bool
l then Bool
True else Bool
r
{-# OPAQUE (||) #-}
not :: Bool -> Bool
not :: Bool -> Bool
not Bool
a = if Bool
a then Bool
False else Bool
True
{-# INLINEABLE not #-}