[Haskell-cafe] Data.Foldable.all and empty list

Lana Black lanablack at amok.cc
Tue Sep 29 21:33:27 UTC 2015


Hello,

Is there any particular reason why the 'all' function returns True when
supplied with an empty list (or any other foldable)? I'm aware that it
is implemented via All monoid instance, my question is whether this
behaviour is intentional or it can be considered a bug.


More information about the Haskell-Cafe mailing list