[Haskell-cafe] Re: PROPOSAL: Some more 'Applicative' combinators

apfelmus apfelmus at quantentunnel.de
Wed Jan 9 05:26:47 EST 2008


Sterling Clover wrote:
> The more general question, which stems from a certain degree of 
> ignorance on my part, is what uses folks have found for Alternative at 
> all outside of parsing.

Alternative is the generalization of MonadPlus, so  empty  and  <|>  are 
useful for lists and Maybe at least. But I'm not sure whether

    many :: Alternative f => f a -> f [a]

and friends have any uses outside of parsing.


Regards,
apfelmus



More information about the Haskell-Cafe mailing list