4 Polymorphic Optics

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

4.1 Introduction to polymorphic optics

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Simple vs Polymorphic optics

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

4.2 When do we need polymorphic lenses

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Type-changing focuses

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Changing type variables with polymorphic lenses

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Exercises – Polymorphic Lenses

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

4.3 Composing Lenses

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

How do I update fields in deeply nested records?

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Composing update functions

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Composing Lenses

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

How do Lens Types Compose?

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Exercises – Lens Composition

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.