[Haskell-cafe] Quick question on Lens

Corentin Dupont corentin.dupont at gmail.com
Sun May 4 20:34:34 UTC 2014


Hello!
I have a record like this:

data A = { _bs :: [B]}

funcA :: State A ()
funcA = bs ??? funcB

funcB :: State B ()
funcB = ...

What lens operator should I use instead of ???, to update all my Bs?

Cheers,
Corentin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140504/a27cbe92/attachment.html>


More information about the Haskell-Cafe mailing list