Which one makes more sense for you and why?
whenJust :: Applicative f => Maybe a -> (a -> f ()) -> f ()
or
whenJust :: (Applicative f, Monoid m) => Maybe a -> (a -> f m) -> f m
whenJust :: Monoid m => Maybe a -> (a -> m) -> m
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.