Module
Data.Lens.Getter
- Package
- purescript-profunctor-lenses
- Repository
- purescript-contrib/purescript-profunctor-lenses
This module defines functions for working with getters.
#use Source
use :: forall s t a b m. MonadState s m => Getter s t a b -> m a
View the focus of a Getter
in the state of a monad.
#iview Source
iview :: forall i s t a b. IndexedFold (Tuple i a) i s t a b -> s -> Tuple i a
View the focus of a Getter
and its index.
#iuse Source
iuse :: forall i s t a b m. MonadState s m => IndexedFold (Tuple i a) i s t a b -> m (Tuple i a)
View the focus of a Getter
and its index in the state of a monad.
#cloneGetter Source
cloneGetter :: forall s t a b. AGetter s t a b -> Getter s t a b
Re-exports from Data.Lens.Types
#IndexedGetter Source
type IndexedGetter i s t a b = IndexedFold a i s t a b
#IndexedFold Source
type IndexedFold r i s t a b = IndexedOptic (Forget r) i s t a b
- Modules
- Data.
Lens - Data.
Lens. AffineTraversal - Data.
Lens. At - Data.
Lens. Common - Data.
Lens. Fold - Data.
Lens. Fold. Partial - Data.
Lens. Getter - Data.
Lens. Grate - Data.
Lens. Index - Data.
Lens. Indexed - Data.
Lens. Internal. Bazaar - Data.
Lens. Internal. Exchange - Data.
Lens. Internal. Focusing - Data.
Lens. Internal. Forget - Data.
Lens. Internal. Grating - Data.
Lens. Internal. Indexed - Data.
Lens. Internal. Market - Data.
Lens. Internal. Re - Data.
Lens. Internal. Shop - Data.
Lens. Internal. Stall - Data.
Lens. Internal. Tagged - Data.
Lens. Internal. Wander - Data.
Lens. Internal. Zipping - Data.
Lens. Iso - Data.
Lens. Iso. Newtype - Data.
Lens. Lens - Data.
Lens. Lens. Product - Data.
Lens. Lens. Tuple - Data.
Lens. Lens. Unit - Data.
Lens. Lens. Void - Data.
Lens. Prism - Data.
Lens. Prism. Coproduct - Data.
Lens. Prism. Either - Data.
Lens. Prism. Maybe - Data.
Lens. Record - Data.
Lens. Setter - Data.
Lens. Traversal - Data.
Lens. Types - Data.
Lens. Zoom