| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Plutarch.Bool
Contents
Synopsis
- data PBool (s :: S)
- class PEq t where
- class PEq t => PPartialOrd t where
- class PPartialOrd t => POrd t
- pif :: Term s PBool -> Term s a -> Term s a -> Term s a
- pif' :: Term s (PBool :--> (a :--> (a :--> a)))
- pnot :: Term s (PBool :--> PBool)
- (#&&) :: Term s PBool -> Term s PBool -> Term s PBool
- (#||) :: Term s PBool -> Term s PBool -> Term s PBool
- por :: Term s (PBool :--> (PDelayed PBool :--> PDelayed PBool))
- pand :: Term s (PBool :--> (PDelayed PBool :--> PDelayed PBool))
- pand' :: Term s (PBool :--> (PBool :--> PBool))
- por' :: Term s (PBool :--> (PBool :--> PBool))
Documentation
Plutus BuiltinBool
Instances
| PEq PBool Source # | |
| POrd PBool Source # | |
Defined in Plutarch.Bool | |
| PPartialOrd PBool Source # | |
| PIsData PBool Source # | Instance for PBool following the Plutus IsData repr
given by |
| PlutusType PBool Source # | |
Defined in Plutarch.Bool | |
| PUnsafeLiftDecl PBool Source # | |
| PShow PBool Source # | |
| Show (PBool s) Source # | |
| type PContravariant' PBool Source # | |
Defined in Plutarch.Bool | |
| type PCovariant' PBool Source # | |
Defined in Plutarch.Bool | |
| type PInner PBool Source # | |
Defined in Plutarch.Bool | |
| type PVariant' PBool Source # | |
Defined in Plutarch.Bool | |
| type PLifted PBool Source # | |
Defined in Plutarch.Bool | |
Minimal complete definition
Nothing
Instances
class PEq t => PPartialOrd t where Source #
Partial ordering relation.
Minimal complete definition
Nothing
Methods
(#<=) :: Term s t -> Term s t -> Term s PBool infix 4 Source #
(#<) :: Term s t -> Term s t -> Term s PBool infix 4 Source #
Instances
class PPartialOrd t => POrd t Source #
Total ordering relation.
Instances
pif' :: Term s (PBool :--> (a :--> (a :--> a))) Source #
Strict version of pif.
Emits slightly less code.
(#&&) :: Term s PBool -> Term s PBool -> Term s PBool infixr 3 Source #
Lazily evaluated boolean and for PBool terms.
(#||) :: Term s PBool -> Term s PBool -> Term s PBool infixr 2 Source #
Lazily evaluated boolean or for PBool terms.
por :: Term s (PBool :--> (PDelayed PBool :--> PDelayed PBool)) Source #
Hoisted, Plutarch level, lazily evaluated boolean or function.
pand :: Term s (PBool :--> (PDelayed PBool :--> PDelayed PBool)) Source #
Hoisted, Plutarch level, lazily evaluated boolean and function.
pand' :: Term s (PBool :--> (PBool :--> PBool)) Source #
Hoisted, Plutarch level, strictly evaluated boolean and function.
por' :: Term s (PBool :--> (PBool :--> PBool)) Source #
Hoisted, Plutarch level, strictly evaluated boolean or function.
Orphan instances
| PConstantDecl Bool Source # | |
Methods pconstantToRepr :: Bool -> PConstantRepr Bool Source # pconstantFromRepr :: PConstantRepr Bool -> Maybe Bool Source # | |