HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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
#