Constructors
Identity' !() a
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11
Moduleoptics-core-0.4.2Haskell2010
This module is intended for internal use only, and may change without warning in subsequent releases.
Identity' !() aMark a value for evaluation to whnf.
This allows us to, when applying a setter to a structure, evaluate only the parts that we modify. If an optic focuses on multiple targets, Applicative instance of Identity' makes sure that we force evaluation of all of them, but we leave anything else alone.
Helper for traverseOf_ and the like for better efficiency than the foldr-based version.
Note that the argument a of the result should not be used.
Traversed (f a)Applicative f => Semigroup (Traversed f a)Defined in optics-core-0.4.2 · Optics.Internal.UtilsApplicative f => Monoid (Traversed f a)Defined in optics-core-0.4.2 · Optics.Internal.UtilsFunctor f => Functor (OrT f)Defined in optics-core-0.4.2 · Optics.Internal.UtilsApplicative f => Applicative (OrT f)Defined in optics-core-0.4.2 · Optics.Internal.UtilsWrap the applicative action in OrT so that we know later that it was executed.
Composition operator where the first argument must be an identity function up to representational equivalence (e.g. a newtype wrapper or unwrapper), and will be ignored at runtime.
Composition operator where the second argument must be an identity function up to representational equivalence (e.g. a newtype wrapper or unwrapper), and will be ignored at runtime.
uncurry with no lazy pattern matching for more efficient code.