# Starting Haskell

We use `GHCi`

for interactive programming with Haskell.

Simple arithmetic:

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

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
```