versions: Types and parsers for software version numbers.

[ bsd3, data, library ] [ Propose Tags ]

A library for parsing and comparing software version numbers.

We like to give version numbers to our software in a myriad of different ways. Some ways follow strict guidelines for incrementing and comparison. Some follow conventional wisdom and are generally self-consistent. Some are just plain asinine. This library provides a means of parsing and comparing any style of versioning, be it a nice Semantic Version like this:


...or a monstrosity like this:


Please switch to Semantic Versioning if you aren't currently using it. It provides consistency in version incrementing and has the best constraints on comparisons.

Versions [faq] 1.0.0, 1.0.1, 1.0.2, 1.1.0, 2.0.0, 3.0.0, 3.0.1,, 3.0.2,, 3.1.0,, 3.1.1, 3.2.0, 3.3.0, 3.3.1, 3.3.2, 3.4.0,, 3.5.0, 3.5.1, (info)
Dependencies base (==4.8.*), parsec (==3.1.*), semigroups (>=, text (==1.2.*) [details]
License BSD-3-Clause
Author Colin Woodbury
Category Data
Source repo head: git clone git://
Uploaded by fosskers at Fri Nov 13 06:22:30 UTC 2015
Distributions LTSHaskell:3.5.1, NixOS:, Stackage:3.5.1
Downloads 7828 total (384 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2015-11-14 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees