Optics By Example: Functional lenses in Haskell

Optics By Example: Functional lenses in Haskell

Optics By Example: Functional lenses in Haskell

Author:Chris Penner (Author)

Publisher finelybook 出版社:‏leanpub

Publication Date 出版日期:2020-04-22

Language 语言:English

Print Length 页数:420 pages

Book Description

About the Book

Hi! I’m Chris, the author of Optics By Example!

Optics By Example is a one-stop comprehensive guide to mastering optics in functional programming languages. It covers everything you need to know to go from complete beginner to advanced. Each topic is accompanied by copious examples and exercises!

See the Sample for a complete list of chapters, but here are some highlights:

  • Complete introductions to Lenses, Folds, Traversals, Prisms and Isos

  • Learn the magic of Indexed optics

  • Composing Optics

  • Lenses & Records

  • Fixing “The Record Problem”

  • Application design techniques using Classy optics

  • Breakdowns of laws and limitations for each optic type

  • Virtual lenses

  • Validation lenses

  • A guide to fully polymorphic optics

  • A guide to “operator-style”

  • Learn to query, filter, and aggregate data with surgical precision

  • Learn how to use higher-order optics effectively

  • Learn to write custom versions of all optics types for your own applications

  • Manipulate data types with a clean and consistent interface

  • Learn the monadic DSLs for using lenses in real monad stacks

WHY OPTICS?

Optics have become a wonderful and powerful new way of working with immutable data structures. They’re almost a necessity at this point; and the benefits they bring in terms of re-usability, simplification of code maintenance & refactoring, and expressivity are immense! However, learning to use optics can be tricky or even intimidating at first, it’s not always clear how to build up a large complicated mutation or query from the building blocks of optics. Optics by example is here to help!

This book is great as a first guide to optics, as a reference guide for discovering and mastering the optics you need for day-to-day problems, and as a springboard into new ideas and tools which you may not have even heard of.

Amazon Page

下载地址

PDF | 8 MB | 2020-03-21
下载地址 Download解决验证以访问链接!
打赏
未经允许不得转载:finelybook » Optics By Example: Functional lenses in Haskell

评论 抢沙发

觉得文章有用就打赏一下

您的打赏,我们将继续给力更多优质内容

支付宝扫一扫

微信扫一扫