Haskell – how to deal with Monad, Functor and Applicative in order to write stateful code
I am attempting to write some stateful code in Haskell. To this end, I follow this material. At this point, I got my way to monads and functors, and, roughly put, I am confused and can’t make progress with the material. I have this M(Non)WE: