What is the proper name for (>>) operator in Haskell?

Viewed 155

The monadic (>>) :: Monad m => m a -> m b -> m b operator is well-known. I wonder what its name is.

  • In this Haskell tutorial and also in this one they call this operator a "then". It is a nice name, it makes perfect sense in terms of the do-notation. A minor downside is the collision with then of the ternary operator.
  • In my native Haskell tradition we call it a "усечённое связывание", translation being "truncated bind". It might be a little inconvenient in Russian as it sort of collides with the translation for "bind's section", but I do not see any similar issue in English. Does anyone use such a name or some similar one in English? A poetic way to put this would probably be a "frustum".

Does anyone use any other name for the operator? What is the preferred one?

1 Answers

Let's call it "short fish". (Because >=> is the "fish", and >> is that with a shorter body.)

Or maybe "fsh", a "fish" without the internal part.

Since I've seen the (.).(.) operator called by a certain name, I might also suggest calling >> by another name which you may discover by browsing this post's editing history...

Another possibility is... the chicane operator.

Related