Tag: unsafeperformio

How can I create a global variable?

What if you're trying to create a global counter? If you need some global cache and just don't want to plumb an IORef through all of your code? Is there some dirty hack you can use to get a global IORef?