. "I too had problems switching to functional programming, i.e. Haskell in my case." . . .