HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Moduleoptics-core-0.4.2Haskell2010

Optics.Internal.Generic.TypeLevel

This module is intended for internal use only, and may change without warning in subsequent releases.

Contents
  1. Pathing
  2. Names
  3. Positions
  4. Misc
Synopsis
  • Packageoptics-core-0.4.2
  • Exports9
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceTypeLevel.hs

Pathing

datadata Path
#
Instances17GAffineFieldMaybe, GSetFieldProd, GConstructorSum, GFieldProd, …

Names

familytype family GetNamePath (name :: Symbol) (g :: k -> Type) (acc :: [Path]) :: Either Symbol [Path] where

Compute path to a constructor in a sum or a field in a product with a specific name.

Equations

Positions

familytype family GetPositionPaths (s :: t) (pos :: Nat) (g :: k -> Type) :: PathTree (Nat, Nat) where

Compute paths to a field at a specific position.

Equations

familytype family GetPositionPath (pos :: Nat) (g :: k -> Type) (k1 :: Nat) (acc :: [Path]) :: Either (Nat, Nat) [Path] where

Compute path to a constructor in a sum or a field in a product at a specific position.

Equations

Misc

familytype family HideReps (g :: Type -> Type) (h :: Type -> Type) :: Constraint where

Generate bogus equality constraints that attempt to unify generic representations with this type in case there is an error such as missing field, constructor etc. so these huge types don't leak into error messages.

Equations