I try to make a simple counter. My counters do not go up however. It seems to me as if they are re-initialized every time by the function \"inc\" or maybe the (n+1) does not
Variables are immutable in Haskell. When you call inc f it returns a value of 0 + 1 which you promptly ignore. The value of f is 0 and will remain so for all time.