HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulegeneric-lens-core-2.2.1.0Haskell2010

Data.Generics.Internal.Profunctor.Prism

Internal lens helpers. Only exported for Haddock

  • 3 types
  • 13 values
typetype APrism i s t a b = Market a b i a b -> Market a b i s t
#
valueleft :: Choice p => p i (a x) (b x) -> p i ((:+:) a c x) ((:+:) b c x)
#
valueright :: Choice p => p i (b x) (c x) -> p i ((:+:) a b x) ((:+:) a c x)
#
valueprism :: (b -> t) -> (s -> Either t a) -> Prism s t a b
#
valueprismPRavel :: APrism i s t a b -> Prism s t a b
#
valuematch :: Prism s t a b -> s -> Either t a
#
valuewithout'
  1. :: Prism s t a b
  2. -> Prism s t c d
  3. -> Prism s t (Either a c) (Either b d)
#
valuewithPrism :: APrism i s t a b -> ((b -> t) -> (s -> Either t a) -> r) -> r
#
valueprism2prismp :: Market a b i s t -> Prism s t a b
#
valueidPrism :: Market a b i a b
#
valuegsum :: (a x -> c) -> (b x -> c) -> (:+:) a b x -> c
#