[Haskell-cafe] Cal, Clojure, Groovy, Haskell, OCaml, etc.

Tom Tobin korpios at korpios.com
Wed Sep 30 13:18:18 EDT 2009

On Wed, Sep 30, 2009 at 11:45 AM, namekuseijin <namekuseijin at gmail.com> wrote:
> I've not been following Haskell too much and am completely lost when
> reading code like that.  I understand (+1), : and ! but what the hell
> are . and $ for?

Function composition and lowest-precedence function application, respectively.

> And that weird monad symbol in the Haskell logo is not even used! >>=
> Not quite the worst example of such line noise much of Haskell
> idiomatic code uses nowadays, though.

That's the monadic bind operator.  As far as sugar, I think you've got
it backwards — the "do" syntax is sugar for >>= and friends.  :-)

More information about the Haskell-Cafe mailing list