HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleoptics-core-0.4.1.1Haskell2010

Optics.Internal.Generic

  • 13 classes
  • 10 values
valuegeneric :: (Generic a, Generic b) => Iso a b (Rep a x) (Rep b y)
#

Convert from the data type to its representation (or back)

Example1 expression
view (generic % re generic) "hello" :: String"hello"
value_M1 :: Iso (M1 i c f p) (M1 j d g q) (f p) (g q)
#

Fields

6 declarations
classclass GSetFieldSum (path :: PathTree Symbol) (g :: Type -> Type) (h :: Type -> Type) b | path h -> b, path g b -> h where
#

Methods

Instances3GSetFieldSum
classclass GSetFieldProd (path :: [Path]) (g :: Type -> Type) (h :: Type -> Type) b | path h -> b, path g b -> h where
#

Methods

Instances5GSetFieldProd
classclass GAffineFieldImpl (repDefined :: Bool) (name :: Symbol) s t a b | name s -> a where
#

Methods

Instances1GAffineFieldImpl
classclass GAffineFieldSum (path :: PathTree Symbol) (g :: Type -> Type) (h :: Type -> Type) a b where
#

Methods

Instances3GAffineFieldSum
classclass 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 where
#

Methods

Instances5GFieldProd

Positions

2 declarations
classclass 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 where
#

Methods

Instances3GPositionSum

Constructors

3 declarations
classclass GConstructorImpl (repDefined :: Bool) (name :: Symbol) s t a b | name s -> a where
#

Methods

Instances1GConstructorImpl
classclass 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 where
#

Methods

Instances6GConstructorSum
classclass GConstructorTuple (g :: Type -> Type) (h :: Type -> Type) a b | g -> a, h -> b, g b -> h, h a -> g where
#

Methods

Instances7GConstructorTuple, …
  • (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.Generic

    Only 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.Generic

    Only 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.Generic

    Only for a derived balanced representation.

Types

2 declarations
classclass GPlateImpl (g :: Type -> Type) a where
#

Methods

Instances8GPlateImpl, …

Re-export

0 declarations