HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleoptics-core-0.4.2Haskell2010

Optics.IxGetter

An IxGetter is an indexed version of a Getter. See the "Indexed optics" section of the overview documentation in the Optics module of the main optics package for more details on indexed optics.

  • 2 types
  • 4 values
  • Packageoptics-core-0.4.2
  • Exports6
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceIxGetter.hs

Formation

1 declaration

Introduction

2 declarations
valueito :: (s -> (i, a)) -> IxGetter i s a
#

Build an indexed getter from a function.

Example1 expression
iview (ito id) ('i', 'x')('i','x')

Elimination

2 declarations

Subtyping

1 declaration
datadata A_Getter
#

Tag for a getter.

Instances29ReversibleOptic, Is, JoinKinds, IxOptic, ToReadOnly, MappingOptic, …