Commit e9c1e38 1 parent e60c5ca commit e9c1e38 Copy full SHA for e9c1e38
File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,23 @@ Frozen versions
28
28
Version ranges
29
29
--------------
30
30
31
+ A dependency can have a version range specified in the package description.
32
+ This is expected for published packages. The `cabal check ` command will check
33
+ that version ranges conform to a set of rules:
34
+
35
+ - that lower bounds are inclusive
36
+ - that upper bounds are exclusive
37
+ - that upper bounds don't have trailing zeros
38
+ - that upper bounds are not missing
39
+ - that upper bounds are not missing for ``base ``
40
+
41
+ With large projects with many packages, it would be a lot of work to keep all
42
+ package dependency version ranges up to date. Ways of overcoming this are:
43
+
44
+ - use a package generator like ``hpack-dhall-cabal `` to import sets of dependencies with version ranges
45
+ - use a ``cabal.project `` file to specify version constraints for all dependencies
46
+ - use a curated set of packages and versions and import these into the project
47
+
31
48
Version constraints
32
49
-------------------
33
50
You can’t perform that action at this time.
0 commit comments