Transitioning from Java to Haskell