Hello, I'm thinking of creating a package for hackage. I need it myself in a project. First I just implemented it in my own project, but now I want to give back to the community by publishing the reuseable parts in tidy package.
The package is best described by my application specific code, it's basically a helper function creating an IORef a thats updated say every hour. For example scraping a site. So given an action IO a, run it every hour and save the result in the IORef a, if the provided action crashes, then the parent thread shouldn't crash, instead it should just re-run the action the next hour. The application in mind is indeed for scraping.
I've got two questions about this:
-
Is something like this already done? I've not found it anywhere.
-
Where in the module hierarchy does this fit?
Control.Concurrent.Helpers.TimedRepeatingorSystem.IO.TimedRepeating? Any better name idea thanTimedRepeating?