Module

Control.Selective.ComposeTM

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

#ComposeTM Source

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

This newtype provides a Select instance for Compose. It "lifts" the Traversable g into the Selective f. ComposeTM does this in a way that works well when the g/inner type is like Array or Maybe, whose "effect" just involves the amount of elements, and doesn't store any extra data alongside elements, like Tuple does. More details in the documentation for the Select instance. See also ComposeT for an alternate implementation that's better suited for tuples.

Constructors

Instances