Transitioning from Python to Haskell