Greetings,

Better style in functional programming is to be as stateless as possible. Reverting to using global state, your life would be easier coding in Python. Isn’t this a classic use for a Reader monad, which is for the purpose of passing an environment around without having to do so explicitly?

Andrew


On 7/06/2015, 05:07, "Beginners on behalf of mike h" <beginners-bounces@haskell.org on behalf of mike_k_houghton@yahoo.co.uk> wrote:

Global state is an option - thanks. Didn't think Haskell allowed this.