Skip to content

Commit e7fb020

Browse files
committed
Support ghc-9.14
Currently using ghc-9.14.1
1 parent cf3b3d4 commit e7fb020

File tree

5 files changed

+140
-3
lines changed

5 files changed

+140
-3
lines changed

cabal.project

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,105 @@ source-repository-package
111111
subdir:
112112
plutus-core
113113
plutus-ledger-api
114+
115+
constraints:
116+
-- This version breaks the build.
117+
, cuddle < 1.1.2
118+
119+
if impl (ghc >= 9.14)
120+
constraints:
121+
, containers >= 0.8
122+
, foldl >= 1.4.18
123+
124+
-- cabal-allow-newer
125+
if impl (ghc >= 9.14)
126+
allow-newer:
127+
, aeson:QuickCheck
128+
, aeson:base
129+
, aeson:containers
130+
, aeson:template-haskell
131+
, aeson:time
132+
, bin:QuickCheck
133+
, bin:base
134+
, binary-orphans:base
135+
, blockio:base
136+
, blockio-uring:base
137+
, bloomfilter-blocked:base
138+
, boring:base
139+
, canonical-json:containers
140+
, cborg:base
141+
, cborg:containers
142+
, cborg-json:base
143+
, compact:base
144+
, config-ini:containers
145+
, config-ini:megaparsec
146+
, constraints:boring
147+
, constraints-extras:base
148+
, constraints-extras:template-haskell
149+
, data-elevator:base
150+
, dec:base
151+
, dependent-map:constraints-extras
152+
, dependent-map:containers
153+
, dictionary-sharing:containers
154+
, diff-containers:base
155+
, fin:QuickCheck
156+
, fin:base
157+
, fin:universe-base
158+
, fingertree-rm:base
159+
, fs-api:unix-bytestring
160+
, hedgehog-quickcheck:QuickCheck
161+
, http-api-data:base
162+
, http-api-data:containers
163+
, hspec-core:QuickCheck
164+
, indexed-traversable:base
165+
, indexed-traversable:containers
166+
, indexed-traversable-instances:base
167+
, kes-agent:base
168+
, kes-agent-crypto:base
169+
, latex-svg-image:base
170+
, lsm-tree:base
171+
, lsm-tree:containers
172+
, microstache:aeson
173+
, microstache:base
174+
, microstache:containers
175+
, nonempty-vector:base
176+
, ordered-containers:containers
177+
, plutus-core:dependent-map
178+
, quickcheck-instances:QuickCheck
179+
, quickcheck-instances:base
180+
, quickcheck-instances:these
181+
, quickcheck-instances:uuid-types
182+
, quickcheck-lockstep:base
183+
, quickcheck-monoid-subclasses:QuickCheck
184+
, quickcheck-monoid-subclasses:base
185+
, quickcheck-monoid-subclasses:containers
186+
, ral:QuickCheck
187+
, ral:base
188+
, ral:fin
189+
, rawlock:base
190+
, rawlock:nothunks
191+
, resource-registry:base
192+
, resource-registry:containers
193+
, resource-registry:nothunks
194+
, safe-wild-cards:template-haskell
195+
, semialign:base
196+
, semialign:containers
197+
, serdoc-core:containers
198+
, serdoc-core:template-haskell
199+
, serialise:base
200+
, serialise:containers
201+
, serialise:time
202+
, these:base
203+
, time-compat:time
204+
, transformers:base
205+
, tree-diff:QuickCheck
206+
, tree-diff:aeson
207+
, tree-diff:base
208+
, tree-diff:containers
209+
, tree-diff:semialign
210+
, tree-diff:time
211+
, universe-base:base
212+
, universe-base:containers
213+
, unix-bytestring:base
214+
, uuid-types:template-haskell
215+
, with-utf8:base

ouroboros-consensus-cardano/ouroboros-consensus-cardano.cabal

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,21 @@ common common-lib
4545
-Wincomplete-record-updates
4646
-Wpartial-fields
4747
-Widentities
48-
-Wredundant-constraints
4948
-Wmissing-export-lists
5049
-Wunused-packages
5150
-Wno-unticked-promoted-constructors
5251

52+
-- ghc-9.14 gives redundant constraint warnings on some constraints
53+
-- that are needed for earlier compilers.
54+
if impl(ghc <9.14)
55+
ghc-options:
56+
-Wredundant-constraints
57+
58+
-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
59+
if impl(ghc >=9.14)
60+
ghc-options:
61+
-Wno-pattern-namespace-specifier
62+
5363
if flag(asserts)
5464
ghc-options: -fno-ignore-asserts
5565

ouroboros-consensus-diffusion/ouroboros-consensus-diffusion.cabal

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,21 @@ common common-lib
3737
-Wincomplete-record-updates
3838
-Wpartial-fields
3939
-Widentities
40-
-Wredundant-constraints
4140
-Wmissing-export-lists
4241
-Wunused-packages
4342
-Wno-unticked-promoted-constructors
4443

44+
-- ghc-9.14 gives redundant constraint warnings on some constraints
45+
-- that are needed for earlier compilers.
46+
if impl(ghc <9.14)
47+
ghc-options:
48+
-Wredundant-constraints
49+
50+
-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
51+
if impl(ghc >=9.14)
52+
ghc-options:
53+
-Wno-pattern-namespace-specifier
54+
4555
if flag(asserts)
4656
ghc-options: -fno-ignore-asserts
4757

ouroboros-consensus-protocol/ouroboros-consensus-protocol.cabal

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ common common-lib
4040
-Wunused-packages
4141
-Wno-unticked-promoted-constructors
4242

43+
-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
44+
if impl(ghc >=9.14)
45+
ghc-options:
46+
-Wno-pattern-namespace-specifier
47+
4348
if flag(asserts)
4449
ghc-options: -fno-ignore-asserts
4550

ouroboros-consensus/ouroboros-consensus.cabal

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,21 @@ common common-lib
4242
-Wincomplete-record-updates
4343
-Wpartial-fields
4444
-Widentities
45-
-Wredundant-constraints
4645
-Wmissing-export-lists
4746
-Wunused-packages
4847
-Wno-unticked-promoted-constructors
4948

49+
-- ghc-9.14 gives redundant constraint warnings on some constraints
50+
-- that are needed for earlier compilers.
51+
if impl(ghc <9.14)
52+
ghc-options:
53+
-Wredundant-constraints
54+
55+
-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
56+
if impl(ghc >=9.14)
57+
ghc-options:
58+
-Wno-pattern-namespace-specifier
59+
5060
if flag(asserts)
5161
ghc-options: -fno-ignore-asserts
5262
cpp-options: -DENABLE_ASSERTIONS

0 commit comments

Comments
 (0)