[Haskell-beginners] Lens: zooming

Marcin Mrotek marcin.jan.mrotek at gmail.com
Wed Apr 1 21:44:38 UTC 2015


Hello,

Well, to properly implement zoom, you'd have to use a similar approach
to http://hackage.haskell.org/package/lens-4.8/docs/Control-Lens-Internal-Zoom.html
and implement the Zoom type class. Perhaps try implementing
http://hackage.haskell.org/package/mmorph-1.0.4/docs/Control-Monad-Morph.html
and use (hoist $ zoom whatever) instead?

Best regards,
Marcin Mrotek


More information about the Beginners mailing list