Code competition helpers in haskell