News for hackers. Stuff that matters.
Re:What are potential disadvantages of functional programming? by wyager on Thursday July 27, 2017 @07:50PM (#14870818)
I ran into this exact problem and figured out you can fix it with StateT and Lenses. You can reproduce imperative code exactly, but in pure Haskell. You can even write things like for loops, no problem.

There are no comments on this comment yet.