In the spirit of the following questions:
- Getting multiple results from map with “lens”
- Combining lenses
I am now looking for a way to combine multiple Getters into a single Fold, so that something like the following:
('a','b','c','d') ^.. (_1 <> _2 <> _3)
would result in this:
['a', 'b', 'c']
But the code above actually fails with the following message:
No instance for (Monoid
(Accessor (Endo [Char]) (Char, Char, Char, Char)))
arising from a use of `<>'
So how do I achieve this? Is this possible at all?