[PATCH 1/3] Implement nand, nor, nany and nall in Data.List

Herbert Valerio Riedel hvr at gnu.org
Thu Feb 27 17:28:01 UTC 2014

Hello Alexander,

While the patches are nicely done, I'm -1 on these additions, as I don't
think there's enough value (in terms of Fairbairn threshold) to have
these definitions added.

Fwiw, I'd go even as far as saying that I wouldn't miss it if
`Data.List.{and,or}` weren't defined in `base` as I'd rather use the
'All' and 'Any' newtypes with their Monoid instances or just
`{all,any} id`, given that `Data.List{all,any}` are already taken by
`map`-preprocessed versions of `and`/`or`.


On 2014-02-27 at 16:13:00 +0100, Alexander Berntsen wrote:


> +nand :: [Bool] -> Bool
> +nand = not . and


> +nor :: [Bool] -> Bool
> +nor = not . or

More information about the Libraries mailing list