Skip to content

Dollar sign

Why is Haskell code full of $ signs?

someFunction $ anotherFunction $ aThirdFunction argument


Read this as:

someFunction (anotherFunction (aThirdFunction argument))

In other words, everything to the right of any $ is the argument of everything to the left.

It is popular as a way to avoid excessive brackets. See here for more. See also this Stack Overflow question.