G'day all. Quoting Jinwoo Lee <jinwoo68 at gmail.com>: > Thanks everyone! > Now I think using IORef is the most practical way to do this. Just a suggestion: Store it in a ReaderT instead of a StateT. Cheers, Andrew Bromage