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.Review

A Review is a backwards Getter, i.e. a Review T B is just a function B -> T.

  • 2 types
  • 2 values

Formation

1 declaration

Introduction

1 declaration
valueunto :: (b -> t) -> Review t b
#

An analogue of to for reviews.

Elimination

1 declaration
valuereview :: Is k A_Review => Optic' k is t b -> b -> t
#

Retrieve the value targeted by a Review.

Example1 expression
review _Left "hi"Left "hi"

Computation

0 declarations
review (unto f) = f

Subtyping

1 declaration
datadata A_Review
#

Tag for a review.

Instances14ReversibleOptic, Is, JoinKinds, MappingOptic, MappedOptic, ReversedOptic, …