This is a guest blog from Konstantin Zudov, who has been making a number of wonderful enhancements to the Stackage Server website.


Snapshot badges for packages on Stackage

Stackage Server just got a new feature: snapshot badges. Take a look:

Package authors can add the badges to their README.md to tell users in which snapshots the package is present and provide a link to the package page.

Here is an example of how that can be done:

# PackageName

[![packagename on Stackage LTS 2](https://stackage.org/package/packagename/badge/lts-2)](https://stackage.org/lts-2/package/packagename)
[![packagename on Stackage LTS 3](https://stackage.org/package/packagename/badge/lts-3)](https://stackage.org/lts-3/package/packagename)
[![packagename on Stackage Nightly](https://stackage.org/package/packagename/badge/nightly)](https://stackage.org/nightly/package/packagename)

In case of stack it would look like:


Stack

stack on Stackage LTS 2 stack on Stackage LTS 3 stack on Stackage Nightly

Do you like this blog post and need help with industrial Haskell, Rust or DevOps? Contact us.

Share this