versions-5.0.3: versions.cabal
cabal-version: 2.2
name: versions
version: 5.0.3
synopsis: Types and parsers for software version numbers.
description:
A library for parsing and comparing software version numbers. We like to give
version numbers to our software in a myriad of 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:
.
> 1.2.3-r1+git123
.
...or a monstrosity like this:
.
> 2:10.2+0.0093r3+1-1
.
Please switch to <http://semver.org Semantic Versioning> if you aren't
currently using it. It provides consistency in version incrementing and has
the best constraints on comparisons.
.
This library implements version @2.0.0@ of the SemVer spec.
category: Data
homepage: https://github.com/fosskers/versions
author: Colin Woodbury
maintainer: colin@fosskers.ca
license: BSD-3-Clause
license-file: LICENSE
build-type: Simple
extra-source-files:
CHANGELOG.md
README.md
common commons
default-language: Haskell2010
ghc-options:
-Wall -Wcompat -Wincomplete-record-updates
-Wincomplete-uni-patterns
build-depends:
, base >=4.10 && <4.17
, megaparsec >=7
, text ^>=1.2 || ^>= 2.0
library
import: commons
exposed-modules: Data.Versions
build-depends:
, deepseq >=1.4
, hashable >=1.2
, parser-combinators >= 1.0
test-suite versions-test
import: commons
type: exitcode-stdio-1.0
main-is: Test.hs
hs-source-dirs: test
ghc-options: -threaded -with-rtsopts=-N
build-depends:
, microlens >=0.4
, QuickCheck >=2.9
, tasty >=0.10.1.2
, tasty-hunit >=0.9.2
, tasty-quickcheck >=0.8
, versions