[Haskell] Re: threading mutable state through callbacks