[Haskell-cafe] Quick question on Lens
Niklas Haas
haskell at nand.wakku.to
Sun May 4 21:15:39 UTC 2014
On Sun, 4 May 2014 22:34:34 +0200, Corentin Dupont <corentin.dupont at gmail.com> wrote:
> 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
zoom (bs.traverse) :: State B () -> State A ()
More information about the Haskell-Cafe
mailing list