What is the difference between an Operator and a function in Haskell?

Posted by kunjaan on Stack Overflow See other posts from Stack Overflow or by kunjaan
Published on 2010-03-19T22:33:42Z Indexed on 2010/03/19 22:41 UTC
Read the original article Hit count: 176

Filed under:

I am new to Haskell and this mixture of Infix and Prefix notation is confusing me. What is the difference between an operator like '+' and a function like head? How do I write an operator 'c' which does this 1 c 1 = 2?

I found this definition a ! b = True. How does Haskell know that I am defining ! and not a function a?

© Stack Overflow or respective owner

Related posts about haskell