1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
cabal-version: 2.2
name: versions
version: 6.0.8
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.22
, megaparsec >=7
, text ^>=1.2 || >= 2.0 && < 2.2
, template-haskell >= 2.15
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
build-depends:
, microlens >=0.4
, tasty >=0.10.1.2
, tasty-hunit >=0.9.2
, versions
|