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,, 3.5.2, 3.5.3 (info)
Dependencies base (==4.8.*), parsec (==3.1.*), semigroups (>=, text (==1.2.*), text-show (>=2) [details]
License BSD-3-Clause
Author Colin Woodbury
Category Data
Source repo head: git clone git://
Uploaded by fosskers at Wed Nov 4 17:23:16 UTC 2015
Distributions LTSHaskell:3.5.1, NixOS:3.5.2, Stackage:3.5.1
Downloads 9496 total (913 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2015-11-25 [all 2 reports]




Maintainer's Corner

For package maintainers and hackage trustees