Type Classes

Type Classes

Share this post

Type Classes
Type Classes
Nonzero magnitude: Prisms and lenses

Nonzero magnitude: Prisms and lenses

More on affine traversals (how to define them)

Chris Martin's avatar
Chris Martin
Aug 05, 2023
∙ Paid
1

Share this post

Type Classes
Type Classes
Nonzero magnitude: Prisms and lenses
Share

The first part of this series argues that affine traversals should be considered the core optics concept. You might ask, if that's true, why does everybody talk about “prisms” and “lenses” so much?

The centrality of AffineTraversal

The centrality of AffineTraversal

Chris Martin
·
June 5, 2023
Read full story

Part two gave an example of a class of affine traversals, but I did not give instances to define them.

Positive integers and affine traversal

Positive integers and affine traversal

Chris Martin
·
July 22, 2023
Read full story

Here I pick up where that left off, and in the process I…

Keep reading with a 7-day free trial

Subscribe to Type Classes to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Mission Valley Software LLC
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share