RPN calculator in Haskell