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

PlutusTx.Functor

Synopsis

Documentation

class Functor f where Source #

Plutus Tx version of Functor.

Methods

fmap ∷ (a → b) → f a → f b Source #

Plutus Tx version of fmap.

Instances

Instances details
Functor Identity Source # 
Instance details

Defined in PlutusTx.Functor

Methods

fmap ∷ (a → b) → Identity a → Identity b Source #

Functor Max Source # 
Instance details

Defined in PlutusTx.Semigroup

Methods

fmap ∷ (a → b) → Max a → Max b Source #

Functor Min Source # 
Instance details

Defined in PlutusTx.Semigroup

Methods

fmap ∷ (a → b) → Min a → Min b Source #

Functor Maybe Source # 
Instance details

Defined in PlutusTx.Functor

Methods

fmap ∷ (a → b) → Maybe a → Maybe b Source #

Functor List Source # 
Instance details

Defined in PlutusTx.Functor

Methods

fmap ∷ (a → b) → [a] → [b] Source #

Functor (Either c) Source # 
Instance details

Defined in PlutusTx.Functor

Methods

fmap ∷ (a → b) → Either c a → Either c b Source #

Functor (Map k) Source # 
Instance details

Defined in PlutusTx.AssocMap

Methods

fmap ∷ (a → b) → Map k a → Map k b Source #

Functor ((,) c) Source # 
Instance details

Defined in PlutusTx.Functor

Methods

fmap ∷ (a → b) → (c, a) → (c, b) Source #

Functor (Const m ∷ TypeType) Source # 
Instance details

Defined in PlutusTx.Functor

Methods

fmap ∷ (a → b) → Const m a → Const m b Source #

(<$>)Functor f ⇒ (a → b) → f a → f b infixl 4 Source #

Plutus Tx version of (<$>).

(<&>)Functor f ⇒ f a → (a → b) → f b infixl 1 Source #

Plutus Tx version of (<&>).

(<$)Functor f ⇒ a → f b → f a infixl 4 Source #

Plutus Tx version of (<$).