{-# LANGUAGE CPP #-}
#if !MIN_VERSION_base(4, 15, 0)
{-# OPTIONS_GHC -Wwarn=unrecognised-pragmas #-}
#endif
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
{-# INLINABLE not #-}