Proposal: Adding Kleisli composition to Control.Monad

J. Garrett Morris trevion at gmail.com
Fri Nov 17 16:31:40 EST 2006


On 11/17/06, Aaron Denney <wnoise at ofb.net> wrote:
> On 2006-11-17, Bulat Ziganshin <bulat.ziganshin at gmail.com> wrote:
> > foreach = flip mapM
> > for = flip mapM_
> > on = flip when
> > forever = sequence_ . repeat
> > new = newIORef
> > (=:) = writeIORef
> > ......
> >
> > i'm pretty sure that for novices learning Haskell studying these names
> > will be much simpler than studying Monad concepts and so on
>
> Which will eventually handicap them.

Agreed.  I would suggest this is no more useful than

f . g = g f

or the like.

 /g


More information about the Libraries mailing list