<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><div><div><div>Greetings,</div><div><br></div><div>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?</div><div><br></div><div>Andrew</div><div><br></div><div><div id="MAC_OUTLOOK_SIGNATURE"></div></div></div></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div><div>On 7/06/2015, 05:07, "Beginners on behalf of mike h" <<a href="mailto:beginners-bounces@haskell.org">beginners-bounces@haskell.org</a> on behalf of <a href="mailto:mike_k_houghton@yahoo.co.uk">mike_k_houghton@yahoo.co.uk</a>> wrote:</div></div><div><br></div><div><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div id="yui_3_16_0_1_1433617340807_3686">Global state is an option - thanks. Didn't think Haskell allowed this.</div><div id="yui_3_16_0_1_1433617340807_3686"><br></div></div></div></span></body></html>