O'Reilly logo

Haskell Cookbook by Yogesh Sajanikar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

This recipe shows just one aspect of usefulness. Here we have used the lenses created for JSON using the aeson library. This helps us parse arbitrary JSON without actually writing an instance of FromJSON or ToJSON required to represent the user-defined data. The lens can be similarly used for simplifying the manipulation of large data structures required for certain libraries.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required