Convert from the data type to its representation (or back)
view (generic % re generic) "hello" :: String"hello"
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Moduleoptics-core-0.4.1.1Haskell2010
Convert from the data type to its representation (or back)
view (generic % re generic) "hello" :: String"hello"
Convert from the data type to its representation (or back)
gfieldImpl :: Lens s t a b(Generic s, Generic t, path ~ GetFieldPaths s name (Rep s), HasField name s a, GSetFieldSum path (Rep s) (Rep t) b) => GFieldImpl name s t a bDefined in optics-core-0.4.1.1 · Optics.Internal.Genericclass GSetFieldSum (path :: PathTree Symbol) (g :: Type -> Type) (h :: Type -> Type) b | path h -> b, path g b -> h wheregsetFieldSum :: g x -> b -> h xGSetFieldSum path g h b => GSetFieldSum path (M1 D m g) (M1 D m h) bDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(path ~ GSetFieldPath con epath, When (IsLeft epath) (HideReps g h), GSetFieldProd path g h b) => GSetFieldSum ('PathLeaf epath) (M1 C ('MetaCons con fix hs) g) (M1 C ('MetaCons con fix hs) h) bDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(GSetFieldSum path1 g1 h1 b, GSetFieldSum path2 g2 h2 b) => GSetFieldSum ('PathTree path1 path2) (g1 :+: g2) (h1 :+: h2) bDefined in optics-core-0.4.1.1 · Optics.Internal.Genericclass GSetFieldProd (path :: [Path]) (g :: Type -> Type) (h :: Type -> Type) b | path h -> b, path g b -> h wheregsetFieldProd :: g x -> b -> h xr ~ b => GSetFieldProd '[] (M1 S m (Rec0 a)) (M1 S m (Rec0 b)) rDefined in optics-core-0.4.1.1 · Optics.Internal.GenericGSetFieldProd path g1 h1 b => GSetFieldProd ('PathLeft ': path) (g1 :*: g2) (h1 :*: g2) bDefined in optics-core-0.4.1.1 · Optics.Internal.GenericGSetFieldProd path g2 h2 b => GSetFieldProd ('PathRight ': path) (g1 :*: g2) (g1 :*: h2) bDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(GSetFieldProd path g1 h1 b, g2 ~ h2) => GSetFieldProd ('PathLeft ': path) (g1 :*: g2) (h1 :*: h2) bDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(GSetFieldProd path g2 h2 b, g1 ~ h1) => GSetFieldProd ('PathRight ': path) (g1 :*: g2) (h1 :*: h2) bDefined in optics-core-0.4.1.1 · Optics.Internal.GenericgafieldImpl :: AffineTraversal s t a b(Generic s, Generic t, path ~ GetFieldPaths s name (Rep s), HasField name s a, Unless (AnyHasPath path) (TypeError ((('Text "Type "
':<>: QuoteType s) ':<>: 'Text " doesn't have a field named "
) ':<>: QuoteSymbol name)), GAffineFieldSum path (Rep s) (Rep t) a b) => GAffineFieldImpl 'True name s t a bDefined in optics-core-0.4.1.1 · Optics.Internal.Genericclass GAffineFieldSum (path :: PathTree Symbol) (g :: Type -> Type) (h :: Type -> Type) a b wheregafieldSum :: AffineTraversalVL (g x) (h x) a bGAffineFieldSum path g h a b => GAffineFieldSum path (M1 D m g) (M1 D m h) a bDefined in optics-core-0.4.1.1 · Optics.Internal.GenericGAffineFieldMaybe epath g h a b => GAffineFieldSum ('PathLeaf epath) (M1 C m g) (M1 C m h) a bDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(GAffineFieldSum path1 g1 h1 a b, GAffineFieldSum path2 g2 h2 a b) => GAffineFieldSum ('PathTree path1 path2) (g1 :+: g2) (h1 :+: h2) a bDefined in optics-core-0.4.1.1 · Optics.Internal.Genericclass GFieldProd (path :: [Path]) (g :: Type -> Type) (h :: Type -> Type) a b | path g -> a, path h -> b, path g b -> h, path h a -> g wheregfieldProd :: LensVL (g x) (h x) a b(r ~ a, s ~ b) => GFieldProd '[] (M1 S m (Rec0 a)) (M1 S m (Rec0 b)) r sDefined in optics-core-0.4.1.1 · Optics.Internal.GenericGFieldProd path g1 h1 a b => GFieldProd ('PathLeft ': path) (g1 :*: g2) (h1 :*: g2) a bDefined in optics-core-0.4.1.1 · Optics.Internal.GenericGFieldProd path g2 h2 a b => GFieldProd ('PathRight ': path) (g1 :*: g2) (g1 :*: h2) a bDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(GFieldProd path g1 h1 a b, g2 ~ h2) => GFieldProd ('PathLeft ': path) (g1 :*: g2) (h1 :*: h2) a bDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(GFieldProd path g2 h2 a b, g1 ~ h1) => GFieldProd ('PathRight ': path) (g1 :*: g2) (h1 :*: h2) a bDefined in optics-core-0.4.1.1 · Optics.Internal.GenericgpositionImpl :: Lens s t a bclass GPositionSum (path :: PathTree (Nat, Nat)) (g :: Type -> Type) (h :: Type -> Type) a b | path g -> a, path h -> b, path g b -> h, path h a -> g wheregpositionSum :: LensVL (g x) (h x) a bGPositionSum path g h a b => GPositionSum path (M1 D m g) (M1 D m h) a bDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(path ~ GPositionPath con epath, When (IsLeft epath) (HideReps g h), GFieldProd path g h a b) => GPositionSum ('PathLeaf epath) (M1 C ('MetaCons con fix hs) g) (M1 C ('MetaCons con fix hs) h) a bDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(GPositionSum path1 g1 h1 a b, GPositionSum path2 g2 h2 a b) => GPositionSum ('PathTree path1 path2) (g1 :+: g2) (h1 :+: h2) a bDefined in optics-core-0.4.1.1 · Optics.Internal.GenericgconstructorImpl :: Prism s t a b(Generic s, Generic t, epath ~ GetNamePath name (Rep s) '[], path ~ FromRight (TypeError ((('Text "Type "
':<>: QuoteType s) ':<>: 'Text " doesn't have a constructor named "
) ':<>: QuoteSymbol name)) epath, When (IsLeft epath) (HideReps (Rep s) (Rep t)), GConstructorSum path (Rep s) (Rep t) a b) => GConstructorImpl 'True name s t a bDefined in optics-core-0.4.1.1 · Optics.Internal.Genericclass GConstructorSum (path :: [Path]) (g :: Type -> Type) (h :: Type -> Type) a b | path g -> a, path h -> b, path g b -> h, path h a -> g wheregconstructorSum :: Prism (g x) (h x) a bGConstructorSum path g h a b => GConstructorSum path (M1 D m g) (M1 D m h) a bDefined in optics-core-0.4.1.1 · Optics.Internal.GenericGConstructorTuple g h a b => GConstructorSum '[] (M1 C m g) (M1 C m h) a bDefined in optics-core-0.4.1.1 · Optics.Internal.GenericGConstructorSum path g1 h1 a b => GConstructorSum ('PathLeft ': path) (g1 :+: g2) (h1 :+: g2) a bDefined in optics-core-0.4.1.1 · Optics.Internal.GenericGConstructorSum path g2 h2 a b => GConstructorSum ('PathRight ': path) (g1 :+: g2) (g1 :+: h2) a bDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(GConstructorSum path g1 h1 a b, g2 ~ h2) => GConstructorSum ('PathLeft ': path) (g1 :+: g2) (h1 :+: h2) a bDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(GConstructorSum path g2 h2 a b, g1 ~ h1) => GConstructorSum ('PathRight ': path) (g1 :+: g2) (h1 :+: h2) a bDefined in optics-core-0.4.1.1 · Optics.Internal.Genericclass GConstructorTuple (g :: Type -> Type) (h :: Type -> Type) a b | g -> a, h -> b, g b -> h, h a -> g wheregconstructorTuple :: Iso (g x) (h x) a b(Dysfunctional () () g h a b, TypeError (('Text "Generic based access supports constructors"
':$$: 'Text "containing up to 5 fields. Please generate"
) ':$$: 'Text "PrismS with Template Haskell if you need more."
)) => GConstructorTuple g h a bDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(a ~ (), b ~ ()) => GConstructorTuple U1 U1 a bDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(r ~ a, s ~ b) => GConstructorTuple (F m a) (F m b) r sDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(r ~ (a1, a2), s ~ (b1, b2)) => GConstructorTuple (F m1 a1 :*: F m2 a2) (F m1 b1 :*: F m2 b2) r sDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(r ~ (a1, a2, a3), s ~ (b1, b2, b3)) => GConstructorTuple (F m1 a1 :*: (F m2 a2 :*: F m3 a3)) (F m1 b1 :*: (F m2 b2 :*: F m3 b3)) r sDefined in optics-core-0.4.1.1 · Optics.Internal.GenericOnly for a derived balanced representation.
(r ~ (a1, a2, a3, a4), s ~ (b1, b2, b3, b4)) => GConstructorTuple ((F m1 a1 :*: F m2 a2) :*: (F m3 a3 :*: F m4 a4)) ((F m1 b1 :*: F m2 b2) :*: (F m3 b3 :*: F m4 b4)) r sDefined in optics-core-0.4.1.1 · Optics.Internal.GenericOnly for a derived balanced representation.
(r ~ (a1, a2, a3, a4, a5), s ~ (b1, b2, b3, b4, b5)) => GConstructorTuple ((F m1 a1 :*: F m2 a2) :*: (F m3 a3 :*: (F m4 a4 :*: F m5 a5))) ((F m1 b1 :*: F m2 b2) :*: (F m3 b3 :*: (F m4 b4 :*: F m5 b5))) r sDefined in optics-core-0.4.1.1 · Optics.Internal.GenericOnly for a derived balanced representation.
gplateImpl :: TraversalVL' (g x) aGPlateImpl U1 aDefined in optics-core-0.4.1.1 · Optics.Internal.GenericGPlateImpl V1 aDefined in optics-core-0.4.1.1 · Optics.Internal.GenericGPlateImpl (URec b) aDefined in optics-core-0.4.1.1 · Optics.Internal.GenericGPlateImpl (K1 i a) aDefined in optics-core-0.4.1.1 · Optics.Internal.GenericMatching type.
GPlateInner (Defined (Rep b)) b a => GPlateImpl (K1 i b) aDefined in optics-core-0.4.1.1 · Optics.Internal.GenericRecurse into the inner type if it has a Generic instance.
(GPlateImpl f a, GPlateImpl g a) => GPlateImpl (f :*: g) aDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(GPlateImpl f a, GPlateImpl g a) => GPlateImpl (f :+: g) aDefined in optics-core-0.4.1.1 · Optics.Internal.GenericGPlateImpl f a => GPlateImpl (M1 i c f) aDefined in optics-core-0.4.1.1 · Optics.Internal.GenericgplateInner :: TraversalVL' s aGPlateInner repNotDefined s aDefined in optics-core-0.4.1.1 · Optics.Internal.Generic(Generic s, GPlateImpl (Rep s) a) => GPlateInner 'True s aDefined in optics-core-0.4.1.1 · Optics.Internal.Generic