[Haskell-cafe] Generalized null / zero

Alvaro J. Genial genial at alva.ro
Thu Feb 6 09:17:14 UTC 2014


On Sat, Feb 1, 2014 at 12:08 PM, Mario Blažević <blamario at acanac.net> wrote:

> On 01/28/14 21:25, Alvaro J. Genial wrote:
>
>> 1. Is there a more general version of `null`? (e.g. for a Monad, Functor,
>> Applicative, Traversable or the like.)
>>
>
> There is the MonoidNull class from my monoid-subclasses library. It comes
> with plenty of standard instances.
>

This is very nice as it seems to mesh with my current thinking; I may end
up using it in Neat [1] shortly.

Thank you,

Alvaro
http://alva.ro

[1] https://github.com/ajg/neat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140206/0461a12a/attachment.html>


More information about the Haskell-Cafe mailing list