Changelog for package-version-0.4.1
Revision history for package-version
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to the Haskell Package Versioning Policy.
0.4.1 -- 2025-07-17
Changed
- Doctests use cabal external command, hence no longer part of test suite.
Therefore
--enable-testswill no longer incur a GHC dependency.
0.4 -- 2024-08-13
Removed
Prettyinstances removed as these were not very useful.Readinstance removed as it was of dubious utility (fromTextis better).
Changed
- Internal representation now uses
NonEmpty Wordinstead of[Int]. - Because the representation now preserves the desired invariants (non-empty
and non-negative), the type is now fully exposed from the non-internal
module. In particular, the original data constructor
UnsafePackageVersionis replaced withMkPackageVersion.
Added
- Updated bounds on
base,bytestring, andtemplate-haskell. - Added
HasCallStacktounsafePackageVersion.
0.3 -- 2022-10-21
Changed
- Minimum length is now 1, not 2. This is due to cabal allowing package versions with a single digit.
- Accordingly,
memptyis now[0], not[0,0]. - The
ValidationErrorTooShortdata constructor renamed toValidationErrorEmpty. - Field
unPackageVersionremoved as it allows unsafe construction via record update syntax. This is now an ordinary function.
Added
- GHC 9.4 support.
0.2 -- 2022-07-25
Changed
- Renamed error data constructors to improve consistency.
- Modified errors'
Exceptioninstances to useprettyover defaultshow.
Added
- Added
Genericinstance toPackageVersion.
Fixed
- Used
bytestringfor reading file over bespoke function.
0.1.0.0 -- 2021-12-19
- First version. Released on an unsuspecting world.