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

Moduleoptics-core-0.4.1.1Haskell2010

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

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, …