[Haskell-cafe] Lenses and Nested Maps

David Feuer david.feuer at gmail.com
Tue Jun 18 03:55:23 UTC 2019


The main lensy tools for maps are the At and Ixed classes, both found in
Control.Lens.At.

On Mon, Jun 17, 2019, 11:45 PM Henry Laxen <nadine.and.henry at pobox.com>
wrote:

> Hi Cafe,
>
> Suppose I have:
>
> s :: Map String (Map Int Char)
> s =  M.fromList [("alice", M.fromList [(5,'a')]), ("bob", M.fromList
> [(6,'b')])]
>
> Is there any way to modify the 'b' entry easily using lenses?
>
> Thanks in advance.
> Best wishes,
> Henry Laxen
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20190617/23ec7d9a/attachment.html>


More information about the Haskell-Cafe mailing list