'choice' in Control.Applicative?

Greg Fitzgerald garious at gmail.com
Tue Mar 13 20:35:56 EDT 2007


Should there be a 'choice' function in Control.Applicative?

choice :: Alternative<http://www.haskell.org/ghc/docs/latest/html/libraries/base/Control-Applicative.html#t%3AAlternative>f
=> [f a] -> f a
choice = foldr (<|>) empty
or:
choice = Data.Foldable.asum

Thanks,
Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/libraries/attachments/20070313/6f57d664/attachment.htm


More information about the Libraries mailing list