HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Modulegeneric-lens-2.3.0.0Haskell2010

Data.Generics.Internal.VL.Iso

Internal lens helpers. Only exported for Haddock

Synopsis
datadata Exchange a b s t
#

Constructors

  • Exchange (s -> a) (b -> t)
Instances2Profunctor, Functor
  • Profunctor (Exchange a b)Defined in generic-lens-2.3.0.0 · Data.Generics.Internal.VL.Iso
  • Functor (Exchange a b s)Defined in generic-lens-2.3.0.0 · Data.Generics.Internal.VL.Iso
valuefromIso :: Iso s t a b -> Iso b a t s
#
valueiso2isovl :: Iso s t a b -> Iso s t a b
#
valuewithIso :: Iso s t a b -> ((s -> a) -> (b -> t) -> r) -> r

Extract the two functions, one from s -> a and one from b -> t that characterize an Iso.

valuerepIsoN :: (GenericN a, GenericN b) => Iso a b (RepN a x) (RepN b x)
#
valueiso :: (s -> a) -> (b -> t) -> Iso s t a b
#