plutus-tx-1.36.0.0: Libraries for Plutus Tx and its prelude
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusTx.Traversable

Synopsis

Documentation

class (Functor t, Foldable t) ⇒ Traversable t where Source #

Plutus Tx version of Traversable.

Methods

traverseApplicative f ⇒ (a → f b) → t a → f (t b) Source #

Plutus Tx version of traverse.

Instances

Instances details
Traversable Identity Source # 
Instance details

Defined in PlutusTx.Traversable

Methods

traverseApplicative f ⇒ (a → f b) → Identity a → f (Identity b) Source #

Traversable Maybe Source # 
Instance details

Defined in PlutusTx.Traversable

Methods

traverseApplicative f ⇒ (a → f b) → Maybe a → f (Maybe b) Source #

Traversable List Source # 
Instance details

Defined in PlutusTx.Traversable

Methods

traverseApplicative f ⇒ (a → f b) → [a] → f [b] Source #

Traversable (Either c) Source # 
Instance details

Defined in PlutusTx.Traversable

Methods

traverseApplicative f ⇒ (a → f b) → Either c a → f (Either c b) Source #

Traversable (Map k) Source # 
Instance details

Defined in PlutusTx.AssocMap

Methods

traverseApplicative f ⇒ (a → f b) → Map k a → f (Map k b) Source #

Traversable ((,) c) Source # 
Instance details

Defined in PlutusTx.Traversable

Methods

traverseApplicative f ⇒ (a → f b) → (c, a) → f (c, b) Source #

Traversable (Const c ∷ TypeType) Source # 
Instance details

Defined in PlutusTx.Traversable

Methods

traverseApplicative f ⇒ (a → f b) → Const c a → f (Const c b) Source #

sequenceA ∷ (Traversable t, Applicative f) ⇒ t (f a) → f (t a) Source #

Plutus Tx version of sequenceA.

mapM ∷ (Traversable t, Applicative f) ⇒ (a → f b) → t a → f (t b) Source #

Plutus Tx version of mapM.

sequence ∷ (Traversable t, Applicative f) ⇒ t (f a) → f (t a) Source #

Plutus Tx version of sequence.

for ∷ (Traversable t, Applicative f) ⇒ t a → (a → f b) → f (t b) Source #

Plutus Tx version of for.

fmapDefault ∷ ∀ t a b. Traversable t ⇒ (a → b) → t a → t b Source #

Plutus Tx version of fmapDefault.

foldMapDefault ∷ ∀ t m a. (Traversable t, Monoid m) ⇒ (a → m) → t a → m Source #

Plutus Tx version of foldMapDefault.