[Chore] Add version constraint to base

Problem: `stack sdist` fails with the following message when there are no version constraints on `base`:

> Package check reported the following errors:
> The dependency 'build-depends: base' does not specify an upper bound on the version number. Each major release of the 'base' package changes the API in various ways and most packages will need some changes to compile with it. The recommended practice is to specify an upper bound on the version of the 'base' package. This ensures your package will continue to build when a new major version of the 'base' package is released. If you are not sure what upper bound to use then use the next  major version. For example if you have tested your package with 'base' version 4.5 and 4.6 then use 'build-depends: base >= 4.5 && < 4.7'.

Solution: Add a version constraint to `base`.
This commit is contained in:
Diogo Castro 2022-09-26 19:55:32 +01:00
parent efd7dfd4d2
commit 4e9294fbb7
No known key found for this signature in database
GPG Key ID: 24CC151ACE03BA28

View File

@ -66,7 +66,7 @@ ghc-options:
- -Wno-monomorphism-restriction
dependencies:
- base
- base >=4.14.3.0 && <5
library:
source-dirs: src