HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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.

Contents
  1. Formation
  2. Introduction
  3. Elimination
  4. Subtyping
Synopsis
  • Packageoptics-core-0.4.2
  • Exports6
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceIxGetter.hs

Formation

Introduction

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

Subtyping

datadata A_Getter

Tag for a getter.

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