[Haskell-cafe] Generalizing catMaybes

Conor McBride conor at strictlypositive.org
Sat Jan 8 13:11:28 CET 2011


On 8 Jan 2011, at 11:14, Henning Thielemann wrote:

>
> For me, the solutions of Dave Menendez make most sense: Generalize  
> Maybe to Foldable and List to MonadPlus.

What has it to do with monads? There's no bind in sight.

Alternative is certainly a more general alternative, but then I
would say that, wouldn't I? Even that seems a tad too much.

Cheers

Conor




More information about the Haskell-Cafe mailing list