Skip to content

Instantly share code, notes, and snippets.

@Tarrasch
Created January 15, 2012 18:25
Show Gist options
  • Select an option

  • Save Tarrasch/1616678 to your computer and use it in GitHub Desktop.

Select an option

Save Tarrasch/1616678 to your computer and use it in GitHub Desktop.
idea of hackage package

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:

  1. Is something like this already done? I've not found it anywhere.

  2. Where in the module hierarchy does this fit? Control.Concurrent.Helpers.TimedRepeating or System.IO.TimedRepeating? Any better name idea than TimedRepeating?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment