Skip to content

Commit

Permalink
CI: widen bogus bounds to include cabal v2 [kick 9]
Browse files Browse the repository at this point in the history
  • Loading branch information
ulidtko committed Nov 22, 2024
1 parent e556110 commit d2b58f1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
14 changes: 12 additions & 2 deletions multiple-components-example/multiple-components-example.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,18 @@ custom-setup
setup-depends:
base < 5
, cabal-doctest >=1.0.9 && <1.1
-- not used directly in Setup.hs, but fixes `stack build`.
, Cabal == 3.*

-- Declaring this setup-dep fixes `stack build`. NOTE: Cabal API is not used directly
-- in the examples' Setup.hs! Instead, indirectly through wrappings of cabal-doctest.
--
-- When copying the example, you may of course delete this note, and start importing
-- Cabal stuff directly from Setup.hs.
-- ! Make sure to set a tighter bound, e.g. Cabal <3.16, here in setup-depends !
-- as soon as you do that.
, Cabal >= 1.24 && <4
-- > Warning: [...] Each major release of the 'Cabal' package changes the API
-- > in various ways and most packages will need some changes to compile with it.
-- > If you are not sure what upper bound to use then use the next major version.

library
exposed-modules: Example
Expand Down
14 changes: 12 additions & 2 deletions simple-example/simple-example.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,18 @@ custom-setup
setup-depends:
base < 5
, cabal-doctest >=1.0.9 && <1.1
-- not used directly in Setup.hs, but fixes `stack build`.
, Cabal == 3.*

-- Declaring this setup-dep fixes `stack build`. NOTE: Cabal API is not used directly
-- in the examples' Setup.hs! Instead, indirectly through wrappings of cabal-doctest.
--
-- When copying the example, you may of course delete this note, and start importing
-- Cabal stuff directly from Setup.hs.
-- ! Make sure to set a tighter bound, e.g. Cabal <3.16, here in setup-depends !
-- as soon as you do that.
, Cabal >= 1.24 && <4
-- > Warning: [...] Each major release of the 'Cabal' package changes the API
-- > in various ways and most packages will need some changes to compile with it.
-- > If you are not sure what upper bound to use then use the next major version.

library
exposed-modules: Example
Expand Down

0 comments on commit d2b58f1

Please sign in to comment.