Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module is meant to be imported qualified, as some of its identifiers clash with the Plutarch prelude, as well as other parts of the Plutarch API.
Synopsis
- newtype PInterval (a :: S -> Type) (s :: S) = PInterval (Term s (PDataRecord '["from" ':= PLowerBound a, "to" ':= PUpperBound a]))
- newtype PLowerBound (a :: S -> Type) (s :: S) = PLowerBound (Term s (PDataRecord '["_0" ':= PExtended a, "_1" ':= PBool]))
- newtype PUpperBound (a :: S -> Type) (s :: S) = PUpperBound (Term s (PDataRecord '["_0" ':= PExtended a, "_1" ':= PBool]))
- data PExtended (a :: S -> Type) (s :: S)
- psingleton :: forall (a :: S -> Type) (s :: S). Term s (PAsData a :--> PInterval a)
- pfrom :: forall (a :: S -> Type) (s :: S). Term s (PAsData a :--> PInterval a)
- pto :: forall (a :: S -> Type) (s :: S). Term s (PAsData a :--> PInterval a)
- palways :: forall (a :: S -> Type) (s :: S). (FromData (AsHaskell a), ToData (AsHaskell a)) => Term s (PInterval a)
- pinterval :: forall (a :: S -> Type) (s :: S). Term s (PAsData a :--> (PAsData a :--> PInterval a))
- pinclusiveLowerBound :: forall (a :: S -> Type) (s :: S). (PIsData a, PCountable a) => Term s (PLowerBound a :--> PExtended a)
- pinclusiveUpperBound :: forall (a :: S -> Type) (s :: S). (PIsData a, PEnumerable a) => Term s (PUpperBound a :--> PExtended a)
- pmember :: forall (a :: S -> Type) (s :: S). (PIsData a, PEnumerable a) => Term s (PAsData a :--> (PInterval a :--> PBool))
- pcontains :: forall (a :: S -> Type) (s :: S). (PIsData a, PEnumerable a) => Term s (PInterval a :--> (PInterval a :--> PBool))
- pbefore :: forall (a :: S -> Type) (s :: S). (POrd a, PIsData a) => Term s (a :--> (PInterval a :--> PBool))
- pafter :: forall (a :: S -> Type) (s :: S). (POrd a, PIsData a) => Term s (a :--> (PInterval a :--> PBool))
- pisEmpty :: forall (a :: S -> Type) (s :: S). (PIsData a, PEnumerable a) => Term s (PInterval a :--> PBool)
- phull :: forall (a :: S -> Type) (s :: S). (POrd a, PIsData a) => Term s (PInterval a :--> (PInterval a :--> PInterval a))
- pintersection :: forall (a :: S -> Type) (s :: S). (POrd a, PIsData a) => Term s (PInterval a :--> (PInterval a :--> PInterval a))
Types
newtype PInterval (a :: S -> Type) (s :: S) Source #
Since: 2.0.0
PInterval (Term s (PDataRecord '["from" ':= PLowerBound a, "to" ':= PUpperBound a])) |
Instances
PTryFrom PData a => PTryFrom PData (PAsData (PInterval a)) Source # | Since: 3.1.0 |
Defined in Plutarch.LedgerApi.Interval type PTryFromExcess PData (PAsData (PInterval a)) :: PType | |
PTryFrom PData a => PTryFrom PData (PInterval a) Source # | Since: 3.1.0 |
Defined in Plutarch.LedgerApi.Interval type PTryFromExcess PData (PInterval a) :: PType | |
PIsData (PInterval a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval pfromDataImpl :: forall (s :: S). Term s (PAsData (PInterval a)) -> Term s (PInterval a) pdataImpl :: forall (s :: S). Term s (PInterval a) -> Term s PData | |
PDataFields (PInterval a) Source # | |
Defined in Plutarch.LedgerApi.Interval type PFields (PInterval a) :: [PLabeledType] | |
PEq (PInterval a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval | |
(FromData (AsHaskell a), ToData (AsHaskell a)) => PLiftable (PInterval a) Source # | |
Defined in Plutarch.LedgerApi.Interval toPlutarchRepr :: AsHaskell (PInterval a) -> PlutusRepr (PInterval a) toPlutarch :: forall (s :: S). AsHaskell (PInterval a) -> PLifted s (PInterval a) fromPlutarchRepr :: PlutusRepr (PInterval a) -> Maybe (AsHaskell (PInterval a)) fromPlutarch :: (forall (s :: S). PLifted s (PInterval a)) -> Either LiftError (AsHaskell (PInterval a)) | |
(PIsData a, PEnumerable a) => POrd (PInterval a) Source # | Since: 2.0.0 |
(PIsData a, PEnumerable a) => PPartialOrd (PInterval a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval (#<=) :: forall (s :: S). Term s (PInterval a) -> Term s (PInterval a) -> Term s PBool (#<) :: forall (s :: S). Term s (PInterval a) -> Term s (PInterval a) -> Term s PBool (#>=) :: forall (s :: S). Term s (PInterval a) -> Term s (PInterval a) -> Term s PBool (#>) :: forall (s :: S). Term s (PInterval a) -> Term s (PInterval a) -> Term s PBool | |
DerivePlutusType (PInterval a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval type DPTStrat (PInterval a) | |
PlutusType (PInterval a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
(PIsData a, PShow a) => PShow (PInterval a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval | |
Generic (PInterval a s) Source # | |
type PTryFromExcess PData (PAsData (PInterval a)) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type PTryFromExcess PData (PInterval a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type PFields (PInterval a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval | |
type AsHaskell (PInterval a) Source # | @since WIP |
Defined in Plutarch.LedgerApi.Interval | |
type PlutusRepr (PInterval a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type DPTStrat (PInterval a) Source # | |
Defined in Plutarch.LedgerApi.Interval type DPTStrat (PInterval a) = PlutusTypeData | |
type PContravariant' (PInterval a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type PCovariant' (PInterval a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type PInner (PInterval a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval | |
type PVariant' (PInterval a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type Rep (PInterval a s) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval type Rep (PInterval a s) = D1 ('MetaData "PInterval" "Plutarch.LedgerApi.Interval" "plutarch-ledger-api-3.2.1-6pZLN6XlvMZ4r7ZEuopoAx" 'True) (C1 ('MetaCons "PInterval" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PDataRecord '["from" ':= PLowerBound a, "to" ':= PUpperBound a]))))) |
newtype PLowerBound (a :: S -> Type) (s :: S) Source #
Since: 2.0.0
PLowerBound (Term s (PDataRecord '["_0" ':= PExtended a, "_1" ':= PBool])) |
Instances
PTryFrom PData a => PTryFrom PData (PAsData (PLowerBound a)) Source # | Since: 3.1.0 |
Defined in Plutarch.LedgerApi.Interval type PTryFromExcess PData (PAsData (PLowerBound a)) :: PType ptryFrom' :: forall (s :: S) (r :: PType). Term s PData -> ((Term s (PAsData (PLowerBound a)), Reduce (PTryFromExcess PData (PAsData (PLowerBound a)) s)) -> Term s r) -> Term s r | |
PTryFrom PData a => PTryFrom PData (PLowerBound a) Source # | Since: 3.1.0 |
Defined in Plutarch.LedgerApi.Interval type PTryFromExcess PData (PLowerBound a) :: PType ptryFrom' :: forall (s :: S) (r :: PType). Term s PData -> ((Term s (PLowerBound a), Reduce (PTryFromExcess PData (PLowerBound a) s)) -> Term s r) -> Term s r | |
PIsData (PLowerBound a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval pfromDataImpl :: forall (s :: S). Term s (PAsData (PLowerBound a)) -> Term s (PLowerBound a) pdataImpl :: forall (s :: S). Term s (PLowerBound a) -> Term s PData | |
PDataFields (PLowerBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval type PFields (PLowerBound a) :: [PLabeledType] ptoFields :: forall (s :: S). Term s (PLowerBound a) -> Term s (PDataRecord (PFields (PLowerBound a))) | |
(PIsData a, PCountable a) => PEq (PLowerBound a) Source # | @since WIP |
Defined in Plutarch.LedgerApi.Interval (#==) :: forall (s :: S). Term s (PLowerBound a) -> Term s (PLowerBound a) -> Term s PBool | |
(FromData (AsHaskell a), ToData (AsHaskell a)) => PLiftable (PLowerBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval type AsHaskell (PLowerBound a) type PlutusRepr (PLowerBound a) toPlutarchRepr :: AsHaskell (PLowerBound a) -> PlutusRepr (PLowerBound a) toPlutarch :: forall (s :: S). AsHaskell (PLowerBound a) -> PLifted s (PLowerBound a) fromPlutarchRepr :: PlutusRepr (PLowerBound a) -> Maybe (AsHaskell (PLowerBound a)) fromPlutarch :: (forall (s :: S). PLifted s (PLowerBound a)) -> Either LiftError (AsHaskell (PLowerBound a)) | |
(PIsData a, PCountable a) => POrd (PLowerBound a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval pmax :: forall (s :: S). Term s (PLowerBound a) -> Term s (PLowerBound a) -> Term s (PLowerBound a) pmin :: forall (s :: S). Term s (PLowerBound a) -> Term s (PLowerBound a) -> Term s (PLowerBound a) | |
(PIsData a, PCountable a) => PPartialOrd (PLowerBound a) Source # | @since WIP |
Defined in Plutarch.LedgerApi.Interval (#<=) :: forall (s :: S). Term s (PLowerBound a) -> Term s (PLowerBound a) -> Term s PBool (#<) :: forall (s :: S). Term s (PLowerBound a) -> Term s (PLowerBound a) -> Term s PBool (#>=) :: forall (s :: S). Term s (PLowerBound a) -> Term s (PLowerBound a) -> Term s PBool (#>) :: forall (s :: S). Term s (PLowerBound a) -> Term s (PLowerBound a) -> Term s PBool | |
DerivePlutusType (PLowerBound a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval type DPTStrat (PLowerBound a) | |
PlutusType (PLowerBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval type PInner (PLowerBound a) :: PType type PCovariant' (PLowerBound a) type PContravariant' (PLowerBound a) type PVariant' (PLowerBound a) pcon' :: forall (s :: S). PLowerBound a s -> Term s (PInner (PLowerBound a)) pmatch' :: forall (s :: S) (b :: PType). Term s (PInner (PLowerBound a)) -> (PLowerBound a s -> Term s b) -> Term s b | |
(PIsData a, PShow a) => PShow (PLowerBound a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval pshow' :: forall (s :: S). Bool -> Term s (PLowerBound a) -> Term s PString | |
Generic (PLowerBound a s) Source # | |
Defined in Plutarch.LedgerApi.Interval from :: PLowerBound a s -> Rep (PLowerBound a s) x Source # to :: Rep (PLowerBound a s) x -> PLowerBound a s Source # | |
type PTryFromExcess PData (PAsData (PLowerBound a)) Source # | |
Defined in Plutarch.LedgerApi.Interval type PTryFromExcess PData (PAsData (PLowerBound a)) = PTryFromExcess PData (PInner (PAsData (PLowerBound a))) | |
type PTryFromExcess PData (PLowerBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type PFields (PLowerBound a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval | |
type AsHaskell (PLowerBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval type AsHaskell (PLowerBound a) = AsHaskell (DeriveDataPLiftable (PLowerBound a) (LowerBound (AsHaskell a))) | |
type PlutusRepr (PLowerBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval type PlutusRepr (PLowerBound a) = PlutusRepr (DeriveDataPLiftable (PLowerBound a) (LowerBound (AsHaskell a))) | |
type DPTStrat (PLowerBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval type DPTStrat (PLowerBound a) = PlutusTypeData | |
type PContravariant' (PLowerBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type PCovariant' (PLowerBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type PInner (PLowerBound a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval | |
type PVariant' (PLowerBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type Rep (PLowerBound a s) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval type Rep (PLowerBound a s) = D1 ('MetaData "PLowerBound" "Plutarch.LedgerApi.Interval" "plutarch-ledger-api-3.2.1-6pZLN6XlvMZ4r7ZEuopoAx" 'True) (C1 ('MetaCons "PLowerBound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PDataRecord '["_0" ':= PExtended a, "_1" ':= PBool]))))) |
newtype PUpperBound (a :: S -> Type) (s :: S) Source #
Since: 2.0.0
PUpperBound (Term s (PDataRecord '["_0" ':= PExtended a, "_1" ':= PBool])) |
Instances
PTryFrom PData a => PTryFrom PData (PAsData (PUpperBound a)) Source # | Since: 3.1.0 |
Defined in Plutarch.LedgerApi.Interval type PTryFromExcess PData (PAsData (PUpperBound a)) :: PType ptryFrom' :: forall (s :: S) (r :: PType). Term s PData -> ((Term s (PAsData (PUpperBound a)), Reduce (PTryFromExcess PData (PAsData (PUpperBound a)) s)) -> Term s r) -> Term s r | |
PTryFrom PData a => PTryFrom PData (PUpperBound a) Source # | Since: 3.1.0 |
Defined in Plutarch.LedgerApi.Interval type PTryFromExcess PData (PUpperBound a) :: PType ptryFrom' :: forall (s :: S) (r :: PType). Term s PData -> ((Term s (PUpperBound a), Reduce (PTryFromExcess PData (PUpperBound a) s)) -> Term s r) -> Term s r | |
PIsData (PUpperBound a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval pfromDataImpl :: forall (s :: S). Term s (PAsData (PUpperBound a)) -> Term s (PUpperBound a) pdataImpl :: forall (s :: S). Term s (PUpperBound a) -> Term s PData | |
PDataFields (PUpperBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval type PFields (PUpperBound a) :: [PLabeledType] ptoFields :: forall (s :: S). Term s (PUpperBound a) -> Term s (PDataRecord (PFields (PUpperBound a))) | |
(PIsData a, PEnumerable a) => PEq (PUpperBound a) Source # | @since WIP |
Defined in Plutarch.LedgerApi.Interval (#==) :: forall (s :: S). Term s (PUpperBound a) -> Term s (PUpperBound a) -> Term s PBool | |
(FromData (AsHaskell a), ToData (AsHaskell a)) => PLiftable (PUpperBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval type AsHaskell (PUpperBound a) type PlutusRepr (PUpperBound a) toPlutarchRepr :: AsHaskell (PUpperBound a) -> PlutusRepr (PUpperBound a) toPlutarch :: forall (s :: S). AsHaskell (PUpperBound a) -> PLifted s (PUpperBound a) fromPlutarchRepr :: PlutusRepr (PUpperBound a) -> Maybe (AsHaskell (PUpperBound a)) fromPlutarch :: (forall (s :: S). PLifted s (PUpperBound a)) -> Either LiftError (AsHaskell (PUpperBound a)) | |
(PIsData a, PEnumerable a) => POrd (PUpperBound a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval pmax :: forall (s :: S). Term s (PUpperBound a) -> Term s (PUpperBound a) -> Term s (PUpperBound a) pmin :: forall (s :: S). Term s (PUpperBound a) -> Term s (PUpperBound a) -> Term s (PUpperBound a) | |
(PIsData a, PEnumerable a) => PPartialOrd (PUpperBound a) Source # | @since WIP |
Defined in Plutarch.LedgerApi.Interval (#<=) :: forall (s :: S). Term s (PUpperBound a) -> Term s (PUpperBound a) -> Term s PBool (#<) :: forall (s :: S). Term s (PUpperBound a) -> Term s (PUpperBound a) -> Term s PBool (#>=) :: forall (s :: S). Term s (PUpperBound a) -> Term s (PUpperBound a) -> Term s PBool (#>) :: forall (s :: S). Term s (PUpperBound a) -> Term s (PUpperBound a) -> Term s PBool | |
DerivePlutusType (PUpperBound a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval type DPTStrat (PUpperBound a) | |
PlutusType (PUpperBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval type PInner (PUpperBound a) :: PType type PCovariant' (PUpperBound a) type PContravariant' (PUpperBound a) type PVariant' (PUpperBound a) pcon' :: forall (s :: S). PUpperBound a s -> Term s (PInner (PUpperBound a)) pmatch' :: forall (s :: S) (b :: PType). Term s (PInner (PUpperBound a)) -> (PUpperBound a s -> Term s b) -> Term s b | |
(PIsData a, PShow a) => PShow (PUpperBound a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval pshow' :: forall (s :: S). Bool -> Term s (PUpperBound a) -> Term s PString | |
Generic (PUpperBound a s) Source # | |
Defined in Plutarch.LedgerApi.Interval from :: PUpperBound a s -> Rep (PUpperBound a s) x Source # to :: Rep (PUpperBound a s) x -> PUpperBound a s Source # | |
type PTryFromExcess PData (PAsData (PUpperBound a)) Source # | |
Defined in Plutarch.LedgerApi.Interval type PTryFromExcess PData (PAsData (PUpperBound a)) = PTryFromExcess PData (PInner (PAsData (PUpperBound a))) | |
type PTryFromExcess PData (PUpperBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type PFields (PUpperBound a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval | |
type AsHaskell (PUpperBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval type AsHaskell (PUpperBound a) = AsHaskell (DeriveDataPLiftable (PUpperBound a) (UpperBound (AsHaskell a))) | |
type PlutusRepr (PUpperBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval type PlutusRepr (PUpperBound a) = PlutusRepr (DeriveDataPLiftable (PUpperBound a) (UpperBound (AsHaskell a))) | |
type DPTStrat (PUpperBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval type DPTStrat (PUpperBound a) = PlutusTypeData | |
type PContravariant' (PUpperBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type PCovariant' (PUpperBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type PInner (PUpperBound a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval | |
type PVariant' (PUpperBound a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type Rep (PUpperBound a s) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval type Rep (PUpperBound a s) = D1 ('MetaData "PUpperBound" "Plutarch.LedgerApi.Interval" "plutarch-ledger-api-3.2.1-6pZLN6XlvMZ4r7ZEuopoAx" 'True) (C1 ('MetaCons "PUpperBound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PDataRecord '["_0" ':= PExtended a, "_1" ':= PBool]))))) |
data PExtended (a :: S -> Type) (s :: S) Source #
Since: 2.0.0
PNegInf (Term s (PDataRecord '[])) | |
PFinite (Term s (PDataRecord '["_0" ':= a])) | |
PPosInf (Term s (PDataRecord '[])) |
Instances
PTryFrom PData a => PTryFrom PData (PAsData (PExtended a)) Source # | Since: 3.1.0 |
Defined in Plutarch.LedgerApi.Interval type PTryFromExcess PData (PAsData (PExtended a)) :: PType | |
PTryFrom PData a => PTryFrom PData (PExtended a) Source # | Since: 3.1.0 |
Defined in Plutarch.LedgerApi.Interval type PTryFromExcess PData (PExtended a) :: PType | |
PIsData (PExtended a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval pfromDataImpl :: forall (s :: S). Term s (PAsData (PExtended a)) -> Term s (PExtended a) pdataImpl :: forall (s :: S). Term s (PExtended a) -> Term s PData | |
PEq (PExtended a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval | |
(FromData (AsHaskell a), ToData (AsHaskell a)) => PLiftable (PExtended a) Source # | |
Defined in Plutarch.LedgerApi.Interval toPlutarchRepr :: AsHaskell (PExtended a) -> PlutusRepr (PExtended a) toPlutarch :: forall (s :: S). AsHaskell (PExtended a) -> PLifted s (PExtended a) fromPlutarchRepr :: PlutusRepr (PExtended a) -> Maybe (AsHaskell (PExtended a)) fromPlutarch :: (forall (s :: S). PLifted s (PExtended a)) -> Either LiftError (AsHaskell (PExtended a)) | |
(POrd a, PIsData a) => POrd (PExtended a) Source # | Since: 2.0.0 |
(POrd a, PIsData a) => PPartialOrd (PExtended a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval (#<=) :: forall (s :: S). Term s (PExtended a) -> Term s (PExtended a) -> Term s PBool (#<) :: forall (s :: S). Term s (PExtended a) -> Term s (PExtended a) -> Term s PBool (#>=) :: forall (s :: S). Term s (PExtended a) -> Term s (PExtended a) -> Term s PBool (#>) :: forall (s :: S). Term s (PExtended a) -> Term s (PExtended a) -> Term s PBool | |
DerivePlutusType (PExtended a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval type DPTStrat (PExtended a) | |
PlutusType (PExtended a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
(PIsData a, PShow a) => PShow (PExtended a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval | |
Generic (PExtended a s) Source # | |
type PTryFromExcess PData (PAsData (PExtended a)) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type PTryFromExcess PData (PExtended a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type AsHaskell (PExtended a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type PlutusRepr (PExtended a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type DPTStrat (PExtended a) Source # | |
Defined in Plutarch.LedgerApi.Interval type DPTStrat (PExtended a) = PlutusTypeData | |
type PContravariant' (PExtended a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type PCovariant' (PExtended a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type PInner (PExtended a) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval | |
type PVariant' (PExtended a) Source # | |
Defined in Plutarch.LedgerApi.Interval | |
type Rep (PExtended a s) Source # | Since: 2.0.0 |
Defined in Plutarch.LedgerApi.Interval type Rep (PExtended a s) = D1 ('MetaData "PExtended" "Plutarch.LedgerApi.Interval" "plutarch-ledger-api-3.2.1-6pZLN6XlvMZ4r7ZEuopoAx" 'False) (C1 ('MetaCons "PNegInf" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PDataRecord ('[] :: [PLabeledType]))))) :+: (C1 ('MetaCons "PFinite" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PDataRecord '["_0" ':= a])))) :+: C1 ('MetaCons "PPosInf" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PDataRecord ('[] :: [PLabeledType]))))))) |
Functions
Creation
psingleton :: forall (a :: S -> Type) (s :: S). Term s (PAsData a :--> PInterval a) Source #
Given x
, create the interval [x, x]
.
Since: 2.1.1
pfrom :: forall (a :: S -> Type) (s :: S). Term s (PAsData a :--> PInterval a) Source #
Given x
, create the interval [x, +infty)
Since: 2.1.1
pto :: forall (a :: S -> Type) (s :: S). Term s (PAsData a :--> PInterval a) Source #
Given x
, create the interval (-infty, x]
.
Since: 2.1.1
palways :: forall (a :: S -> Type) (s :: S). (FromData (AsHaskell a), ToData (AsHaskell a)) => Term s (PInterval a) Source #
Create the interval (-infty, +infty)
.
Since: 2.1.1
pinterval :: forall (a :: S -> Type) (s :: S). Term s (PAsData a :--> (PAsData a :--> PInterval a)) Source #
creates the interval pinterval
x y[x, y]
.
Since: 2.1.1
pinclusiveLowerBound :: forall (a :: S -> Type) (s :: S). (PIsData a, PCountable a) => Term s (PLowerBound a :--> PExtended a) Source #
Turn a PLowerBound
into a single inclusive bounding value.
@since WIP
pinclusiveUpperBound :: forall (a :: S -> Type) (s :: S). (PIsData a, PEnumerable a) => Term s (PUpperBound a :--> PExtended a) Source #
Turn a PUpperBound
into a single inclusive bounding value.
@since WIP
Queries
pmember :: forall (a :: S -> Type) (s :: S). (PIsData a, PEnumerable a) => Term s (PAsData a :--> (PInterval a :--> PBool)) Source #
Check if a value is inside the given interval.
@since WIP
pcontains :: forall (a :: S -> Type) (s :: S). (PIsData a, PEnumerable a) => Term s (PInterval a :--> (PInterval a :--> PBool)) Source #
pbefore :: forall (a :: S -> Type) (s :: S). (POrd a, PIsData a) => Term s (a :--> (PInterval a :--> PBool)) Source #
is true if before
x ix
is earlier than the start of i
.
Since: 2.1.1
pafter :: forall (a :: S -> Type) (s :: S). (POrd a, PIsData a) => Term s (a :--> (PInterval a :--> PBool)) Source #
is true if after
x ux
is later than the end of i
.
Since: 2.1.1
pisEmpty :: forall (a :: S -> Type) (s :: S). (PIsData a, PEnumerable a) => Term s (PInterval a :--> PBool) Source #
Check if a PInterval
is empty.
@since WIP
Transformation
phull :: forall (a :: S -> Type) (s :: S). (POrd a, PIsData a) => Term s (PInterval a :--> (PInterval a :--> PInterval a)) Source #
gives the smallest interval that contains both phull
i1 i2i1
and
i2
.
Since: 2.1.1
pintersection :: forall (a :: S -> Type) (s :: S). (POrd a, PIsData a) => Term s (PInterval a :--> (PInterval a :--> PInterval a)) Source #
gives the largest interval that is contained in
both pintersection
i1 i2i1
and i2
.
Since: 2.1.1