Module

Control.Selective.ComposeTS

Package
purescript-selective-functors
Repository
artemisSystem/purescript-selective-functors

#ComposeTS Source

newtype ComposeTS :: forall k1 k2. (k2 -> Type) -> (k1 -> k2) -> k1 -> Typenewtype ComposeTS f g a

This newtype provides a Select instance for Compose. It "lifts" the Traversable g into the Selective f. ComposeTS does this in a way that works well when the g/inner type is like Tuple or Maybe, never containing more than one a. More details in the documentation for the Select instance. See ComposeTM for a different implementation that's better suited for arrays.

Constructors

Instances