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