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

Working with Iso

So far, we have looked at lens and traversals which are aimed at focusing on a particular field(s) from the context of accessing or changing its value. In this recipe, we will look at Iso which represents isomorphism between two types. It is possible to go back and forth between two types. For example, we can convert from Text to String and vice versa.

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