We use GHCi for interactive programming with Haskell.

Configuring GHCi with the following packages:
GHCi, version 8.4.3: http://www.haskell.org/ghc/  :? for help
Prelude>

Simple arithmetic:

Prelude> 10 + 9
19
Prelude> 12 - 4
8
Prelude> 18 * 3
54
Prelude> 12 / 2
6.0
Prelude> 13 `mod` 2
1
Prelude> 2 ^ 5
32
Prelude> (3 + 5) ^ 2
64

Note: Unlike typical languages, Haskell requires unary operator (-) to be used with parenthesis, when used after an operator. The compiler complains otherwise.

Prelude> -2 * 3
-6
Prelude> 2 * -3

<interactive>:16:1: error:
    Precedence parsing error
        cannot mix * [infixl 7] and prefix `-' [infixl 6] in the same infix expression
Prelude>

The inequality operator is not !=, it is /-.

succ finds the successor and pred finds the predecessor.

max finds the maximum within 2 inputs while min finds minimum.

When a function takes two parameters (two operands), its usage can be used like the regular function call:

max 3 2

However it can also be used as an infix operator.

3 `max` 2

References