Using base
version bounds to determine GHCs to test with
#6
Replies: 1 comment
-
It's a good question. Usually what you want is also to specify the latest patch of a We could indeed take more information into account. Hell, All of this to say: I'm not fundamentally opposed, you make good points, but this needs more brain time for the design and then a bit more later to maintain, and I'm not sure I can afford it. |
Beta Was this translation helpful? Give feedback.
-
To support the
*automagic*nature of this plugin, it'd be cool to additionally supportbase
version bounds for generating CI. While this is convenient (don't have to specify aTested-With
clause), it's also great for bounds checking.A
base
constraint with no upper bound would "opt in" to be tested, automatically, once new versions of GHC are released. This would alert library authors to breaking changes in their CI much more quickly than if they were to opt-in.Likewise, a
base
constraint with no lower bound would have lots of old GHCs to test with. This would help prevent problems where a feature of a new GHC is used and the CI suite doesn't manually test old enough versions of GHC.But, IMO, the best part about this would be that it would take into account the information that
cabal
actually uses when providing dependencies. If I saytested-with: GHC == 8.10 || == 9.0 || == 9.2 || == 9.4
, but I've gotbase < 5
, thencabal
will happily try to build my library with GHC 8.2 or 9.6. Both are likely to break.Beta Was this translation helpful? Give feedback.
All reactions