Type synonym for a type-modifying indexed setter.
Moduleoptics-core-0.4.1.1Haskell2010
Optics.IxSetter
An IxSetter is an indexed version of a Setter. See the
"Indexed optics" section of the overview documentation in the Optics module
of the main optics package for more details on indexed optics.
- 3 types
- 1 class
- 6 values
- Packageoptics-core-0.4.1.1
- Exports10
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceIxSetter.hs
Formation
2 declarationsType synonym for a type-preserving indexed setter.
Introduction
1 declarationBuild an indexed setter from a function to modify the element(s).
Elimination
1 declarationApply an indexed setter as a modifier.
Computation
0 declarationsWell-formedness
0 declarationsAdditional introduction forms
1 declarationIndexed setter via the FunctorWithIndex class.
iover imapped ≡ imap
Additional elimination forms
3 declarationsApply an indexed setter, strictly.
Apply an indexed setter as a modifier, strictly.
Subtyping
1 declarationTag for a setter.
Instances17Is, JoinKinds, IxOptic, …
Is A_Lens A_SetterDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.SubtypingIs A_Prism A_SetterDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.SubtypingIs A_Traversal A_SetterDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.SubtypingIs An_AffineTraversal A_SetterDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.SubtypingIs An_Iso A_SetterDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.Subtypingk ~ A_Setter => JoinKinds A_Lens A_Setter kDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.Subtypingk ~ A_Setter => JoinKinds A_Prism A_Setter kDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.Subtypingk ~ A_Setter => JoinKinds A_Setter A_Lens kDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.Subtypingk ~ A_Setter => JoinKinds A_Setter A_Prism kDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.Subtypingk ~ A_Setter => JoinKinds A_Setter A_Setter kDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.Subtypingk ~ A_Setter => JoinKinds A_Setter A_Traversal kDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.Subtypingk ~ A_Setter => JoinKinds A_Setter An_AffineTraversal kDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.Subtypingk ~ A_Setter => JoinKinds A_Setter An_Iso kDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.Subtypingk ~ A_Setter => JoinKinds A_Traversal A_Setter kDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.Subtypingk ~ A_Setter => JoinKinds An_AffineTraversal A_Setter kDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.Subtypingk ~ A_Setter => JoinKinds An_Iso A_Setter kDefined in optics-core-0.4.1.1 · Optics.Internal.Optic.SubtypingIxOptic A_Setter s t a bDefined in optics-core-0.4.1.1 · Optics.Indexed.Core
Re-exports
1 declarationA Functor with an additional index.
Instances must satisfy a modified form of the Functor laws:
imap f . imap g ≡ imap (\i -> f i . g i)
imap (\_ a -> a) ≡ id
Methods
imap :: (i -> a -> b) -> f a -> f bMap with access to the index.
Instances30FunctorWithIndex, …
FunctorWithIndex Int IntMapDefined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex Int SeqDefined in indexed-traversable-0.1.4 · WithIndexThe position in the Seq is available as the index.
FunctorWithIndex Int NonEmptyDefined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex Int ZipListDefined in indexed-traversable-0.1.4 · WithIndexSame instance as for
[].FunctorWithIndex Int []Defined in indexed-traversable-0.1.4 · WithIndexThe position in the list is available as the index.
FunctorWithIndex () IdentityDefined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex () Par1Defined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex () MaybeDefined in indexed-traversable-0.1.4 · WithIndexIx i => FunctorWithIndex i (Array i)Defined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex Void ProxyDefined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex Void U1Defined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex Void V1Defined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex k (Map k)Defined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex k (Tuple2 k)Defined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex Void (Const e)Defined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex Void (Constant e)Defined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex i f => FunctorWithIndex i (Rec1 f)Defined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex i f => FunctorWithIndex i (Backwards f)Defined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex i f => FunctorWithIndex i (Reverse f)Defined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex i m => FunctorWithIndex i (IdentityT m)Defined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex Void (K1 i c)Defined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex r ((->) r)Defined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex [Int] TreeDefined in indexed-traversable-0.1.4 · WithIndexFunctorWithIndex i m => FunctorWithIndex (e, i) (ReaderT e m)Defined in indexed-traversable-0.1.4 · WithIndex(FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (Either i j) (Product f g)Defined in indexed-traversable-0.1.4 · WithIndex(FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (Either i j) (Sum f g)Defined in indexed-traversable-0.1.4 · WithIndex(FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (Either i j) (f :*: g)Defined in indexed-traversable-0.1.4 · WithIndex(FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (Either i j) (f :+: g)Defined in indexed-traversable-0.1.4 · WithIndex(FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (i, j) (Compose f g)Defined in indexed-traversable-0.1.4 · WithIndex(FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (i, j) (f :.: g)Defined in indexed-traversable-0.1.4 · WithIndex