I'm just trying to see if WinGHCi works for Haskell programming, and I don't know the reason why this shows the error above.
I do not know if this is the right application to work on Haskell, if you know another one that can actually work, I would appreciate.
f (x:xs) = f ys ++ [x] ++ f zs
where
ys = [a | a ← xs, a ≤ x]
zs = [b | b ← xs, b > x]
<interactive>:21:20: error:
parse error on input ‘=’
Perhaps you need a 'let' in a 'do' block?
e.g. 'let x = 5' instead of 'x = 5'