P113: Added Haskell solution.