From 4e9294fbb71b91cbba2a8677884805694af02e6e Mon Sep 17 00:00:00 2001 From: Diogo Castro Date: Mon, 26 Sep 2022 19:55:32 +0100 Subject: [PATCH] [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`. --- package.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.yaml b/package.yaml index 6c9f232..243bc88 100644 --- a/package.yaml +++ b/package.yaml @@ -66,7 +66,7 @@ ghc-options: - -Wno-monomorphism-restriction dependencies: - - base + - base >=4.14.3.0 && <5 library: source-dirs: src