[Haskell-cafe] let and fixed point operator

Henning Thielemann lemming at henning-thielemann.de
Thu Aug 30 16:26:33 EDT 2007


On Thu, 30 Aug 2007, Peter Verswyvelen wrote:

> infixl 0 \> -- I just took the first weird symbol combination that came to
> mind, this does not mean anything (I hope ;-)
>
> x \> fx = fx x
>
> f x = x * scale \> \x ->
>       x + transform \> \x ->
>       g x
>
> like this you don't have to invent new names, and you don't have to type
> much more.
>
> I'm sure this silly sequencing operator must already exist in the library
> somewhere?

Sure, its name is (>>=). It must be used for the Identity monad, as
mentioned by Derek Elkins earlier in this thread.


More information about the Haskell-Cafe mailing list