Adding swap/compose functions to Data.Tuple and Data.Function

Bryan O'Sullivan bos at serpentine.com
Tue Nov 20 20:24:45 CET 2012


On Tue, Nov 20, 2012 at 11:14 AM, John Wiegley <johnw at fpcomplete.com> wrote:

>     compose :: [(a -> a)] -> a -> a
>     compose = foldr (.) id
>
>     composeM :: [(a -> m a)] -> a -> m a
>     composeM = foldr (<=<) return
>

I don't think these offer any value beyond saving a couple of keystrokes.
-1 from me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20121120/02dbf7b7/attachment.htm>


More information about the Libraries mailing list