hackage2twitter program reads the Hackage RSS feed and tweets each new release to @Hackage on Twitter.
This program is currently running, and you can just follow @Hackage if your interested in releases of new packages. However, if you’re interested in the implementation, you can download and install this program to run against your own Twitter account.
This program is build on the
feed2twitter library, and is an example of how to use that library.
The Hackage feed is read only once. To keep updating, call this program every few minutes in a cron job.
A local cache of the last 50 tweets is kept in a file to make sure no duplicates are sent.
If you want to run hackage2twitter on your Twitter acount, you can use it like so:
$ hackage2twitter username password cache-file [--debug-mode]
The current version of hackage2twitter is 0.2.0 and is available on Hackage.
If you have cabal-install (which you really should have, by the way), the package can be installed like so:
cabal update cabal install hackage2twitter
If you don’t have cabal-install, you can manually download and install hackage2twitter:
wget http://hackage.haskell.org/packages/archive/hackage2twitter/0.2.0/hackage2twitter-0.2.0.tar.gz tar xzf hackage2twitter-0.2.0.tgz cd hackage2twitter-0.2.0 ./Setup.lhs configure --user ./Setup.lhs build ./Setup.lhs install
One thought on “hackage2twitter: Send new Hackage releases to Twitter”
thanks for the hackage twitter feed. Quite useful. I wanted to propose something about its implementation, but I’m not sure if here is the right place. It would be nice if the tweet was delayed until the upload was built so we could see the documentation.
Anyway great tool, and let me know if I should propose this elsewhere…
Comments are closed.