{-# OPTIONS_HADDOCK not-home #-}
module Optics.Internal.IxSetter where
import Data.Profunctor.Indexed
import Optics.Internal.Indexed.Classes
import Optics.Internal.Optic
imapped__
:: (Mapping p, FunctorWithIndex i f)
=> Optic__ p j (i -> j) (f a) (f b) a b
imapped__ :: Optic__ p j (i -> j) (f a) (f b) a b
imapped__ = (p j a b -> p j (f a) (f b))
-> Optic__ p j (i -> j) (f a) (f b) a b
-> Optic__ p j (i -> j) (f a) (f b) a b
forall (p :: * -> * -> * -> *) i a b s t j.
Profunctor p =>
(p i a b -> p i s t) -> (p i a b -> p j s t) -> p i a b -> p j s t
conjoined__ (((a -> b) -> f a -> f b) -> p j a b -> p j (f a) (f b)
forall (p :: * -> * -> * -> *) a b s t i.
Mapping p =>
((a -> b) -> s -> t) -> p i a b -> p i s t
roam (a -> b) -> f a -> f b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap) (((i -> a -> b) -> f a -> f b)
-> Optic__ p j (i -> j) (f a) (f b) a b
forall (p :: * -> * -> * -> *) i a b s t j.
Mapping p =>
((i -> a -> b) -> s -> t) -> p j a b -> p (i -> j) s t
iroam (i -> a -> b) -> f a -> f b
forall i (f :: * -> *) a b.
FunctorWithIndex i f =>
(i -> a -> b) -> f a -> f b
imap)
{-# INLINE imapped__ #-}