Haskell Foldable Wast

M Farkas-Dyck m.farkasdyck at gmail.com
Mon Feb 22 16:34:08 UTC 2016


On 21/02/2016, Augustsson, Lennart <Lennart.Augustsson at sc.com> wrote:
> Foldable doesn’t have to be a superclass of Traversable.

Mathematically, it is a superclass:

foldMap f = getConst . traverse (Const . f)


More information about the Libraries mailing list