Calculator written in Haskell