versions 5.0.0 → 5.0.1
raw patch · 3 files changed
+29/−6 lines, 3 filesdep ~base
Dependency ranges changed: base
Files
- CHANGELOG.md +27/−3
- Data/Versions.hs +0/−1
- versions.cabal +2/−2
CHANGELOG.md view
@@ -1,5 +1,15 @@ # Changelog +## 5.0.1 (2021-12-08)++#### Changed++- Support for GHC 9.2.++#### Fixed++- Remove redundant pattern match.+ ## 5.0.0 (2021-04-14) This release brings `versions` in line with version `2.0.0` of the SemVer spec.@@ -12,8 +22,7 @@ #### Changed -- **Breaking:** The `_svMeta` field of `SemVer` is now parsed as a dumber `Maybe- Text` instead of `[VChunk]`, due to metadata now being allowed to possess+- **Breaking:** The `_svMeta` field of `SemVer` is now parsed as a dumber `Maybe Text` instead of `[VChunk]`, due to metadata now being allowed to possess leading zeroes. - **Breaking:** Like the above, the `_vMeta` field of `Version` is now `Maybe Text`. - **Breaking: The `_vRel` and `_vMeta` fields of `Version` have had their order@@ -99,30 +108,38 @@ - Improved `Mess` comparison logic. ## 3.5.3+ - GHC 8.10 support. ## 3.5.2+ - Added a new `PVP` type and parsers. ## 3.5.1.1+ - GHC 8.8 compatibility. ## 3.5.0+ - Updated to `megaparsec-7`. Our `ParsingError` type alias has changed to match Megaparsec's new error model, and `errorBundlePretty` is now exposed instead of the old `parseErrorPretty`. ## 3.4.0.1+ - Enhanced the whitespace handling in `semver'`, `version'`, and `mess'`. ## 3.4.0+ - Removed `ParseV` and surrounding machinery. Use `versioning` now instead of the `parseV` function. ## 3.3.2+ - GHC 8.4.1 compatibility. ## 3.3.0+ - New `Semantic` typeclass that provides Traversals for SemVer-like data out of all the version types. `Text` was also given an instance, so its much easier to manipulate directly:@@ -139,32 +156,39 @@ components were changed from `Int` to `Word`. ## 3.2.0+ - Updated for `megaparsec-6` and GHC 8.2. ## 3.1.1+ - Added instances for common typeclasses: `Generic`, `NFData`, and `Hashable`. This is to avoid having users define these instances themselves as orphans. If there are more instances you want added, please let me know. `Data` was left out on purpose. ## 3.1.0-- Added support for *epoch* numbers in the `Version` type. These are numbers++- Added support for _epoch_ numbers in the `Version` type. These are numbers like the `1:` in `1:2.3.4`. These are used in Arch Linux in rare cases where packages change their versioning scheme, but need a reliable integer prefix to establish ordering. The `Version` type has been given a new field, `_vEpoch :: Maybe Int`, and a corresponding lens, `vEpoch`. ## 3.0.2+ - Expose internal parsers so that they could be used in other parser programs that parse version numbers in larger files. ## 3.0.0+ - Updated for `megaparsec-5` and `ghc-8` ## 2.0.0+ - Switched to `megaparsec` to perform all parsing as `Text` - Support for legacy `String` removed - Added more Traversals and INLINE'd all Lenses/Traversals ## 1.1.0+ - Added Lenses and Traversals (no `lens` dependency)
Data/Versions.hs view
@@ -696,7 +696,6 @@ messPatchChunk _ = Nothing instance Ord Mess where- compare (Mess t1 Nothing) (Mess t2 Nothing) = compare t1 t2 compare (Mess t1 m1) (Mess t2 m2) = case compare t1 t2 of EQ -> case (m1, m2) of (Just (_, v1), Just (_, v2)) -> compare v1 v2
versions.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name: versions-version: 5.0.0+version: 5.0.1 synopsis: Types and parsers for software version numbers. description: A library for parsing and comparing software version numbers. We like to give@@ -40,7 +40,7 @@ -Wincomplete-uni-patterns build-depends:- , base >=4.10 && <4.16+ , base >=4.10 && <4.17 , megaparsec >=7 , text >=1.2