Generalize filterM to Applicative

M Farkas-Dyck strake888 at gmail.com
Wed Mar 25 20:20:52 UTC 2015


On 25/03/2015 at 15:06:47 -0500, M Farkas-Dyck wrote:
> https://hackage.haskell.org/package/witherable
> 
> Interesting name choice...

This has superclass Traversable tho, which is not needed as

wither f xs = catMaybes <$> traverse f xs
filterA f = mapMaybeA (\ x -> (x <$) . guard <$> f x)


More information about the Libraries mailing list