Skip to content

Commit 1e9fb72

Browse files
erikdsgillespie
authored andcommitted
Make it build with ghc-9.8
1 parent d21895f commit 1e9fb72

File tree

22 files changed

+106
-3
lines changed

22 files changed

+106
-3
lines changed

cabal.project

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ repository cardano-haskell-packages
1010
d4a35cd3121aa00d18544bb0ac01c3e1691d618f462c46129271bccf39f7e8ee
1111

1212
index-state:
13-
, hackage.haskell.org 2024-06-23T23:01:13Z
14-
, cardano-haskell-packages 2024-07-03T01:26:49Z
13+
, hackage.haskell.org 2024-07-16T21:43:42Z
14+
, cardano-haskell-packages 2024-07-16T05:49:34Z
1515

1616
packages:
1717
cardano-db
@@ -74,6 +74,10 @@ package snap-server
7474
allow-newer:
7575
swagger2:aeson
7676

77+
constraints:
78+
-- STM 2.5.2 is broken: https://github.com/haskell/stm/issues/76
79+
, stm >= 2.5.3.1
80+
7781
-- ---------------------------------------------------------
7882

7983
-- The two following one-liners will cut off / restore the remainder of this file (for nix-shell users):

cardano-chain-gen/src/Cardano/Mock/Forging/Tx/Babbage.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
{-# LANGUAGE TupleSections #-}
88
{-# LANGUAGE TypeApplications #-}
99
{-# LANGUAGE TypeOperators #-}
10+
#if __GLASGOW_HASKELL__ >= 908
11+
{-# OPTIONS_GHC -Wno-x-partial #-}
12+
#endif
1013
{-# OPTIONS_GHC -Wno-orphans #-}
1114

1215
module Cardano.Mock.Forging.Tx.Babbage (

cardano-chain-gen/src/Cardano/Mock/Forging/Tx/Conway.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE DataKinds #-}
23
{-# LANGUAGE FlexibleContexts #-}
34
{-# LANGUAGE NumericUnderscores #-}
@@ -8,6 +9,10 @@
89
{-# LANGUAGE TypeFamilies #-}
910
{-# LANGUAGE TypeOperators #-}
1011

12+
#if __GLASGOW_HASKELL__ >= 908
13+
{-# OPTIONS_GHC -Wno-x-partial #-}
14+
#endif
15+
1116
module Cardano.Mock.Forging.Tx.Conway (
1217
ConwayLedgerState,
1318
Babbage.TxOutScriptType (..),

cardano-chain-gen/src/Cardano/Mock/Forging/Tx/Conway/Scenarios.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE DataKinds #-}
23
{-# LANGUAGE NumericUnderscores #-}
34
{-# LANGUAGE TypeFamilies #-}
45

6+
#if __GLASGOW_HASKELL__ >= 908
7+
{-# OPTIONS_GHC -Wno-x-partial #-}
8+
#endif
9+
510
module Cardano.Mock.Forging.Tx.Conway.Scenarios (
611
delegateAndSendBlocks,
712
registerDRepsAndDelegateVotes,

cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Alonzo/Plutus.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE TypeApplications #-}
23

4+
#if __GLASGOW_HASKELL__ >= 908
5+
{-# OPTIONS_GHC -Wno-x-partial #-}
6+
#endif
7+
38
module Test.Cardano.Db.Mock.Unit.Alonzo.Plutus (
49
-- plutus spend scripts
510
simpleScript,

cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Alonzo/Tx.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
{-# LANGUAGE CPP #-}
2+
3+
#if __GLASGOW_HASKELL__ >= 908
4+
{-# OPTIONS_GHC -Wno-x-partial #-}
5+
#endif
6+
17
module Test.Cardano.Db.Mock.Unit.Alonzo.Tx (
28
addSimpleTx,
39
consumeSameBlock,

cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Babbage/Config/MigrateConsumedPruneTxOut.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
{-# LANGUAGE CPP #-}
12
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}
23

4+
#if __GLASGOW_HASKELL__ >= 908
5+
{-# OPTIONS_GHC -Wno-x-partial #-}
6+
#endif
7+
38
module Test.Cardano.Db.Mock.Unit.Babbage.Config.MigrateConsumedPruneTxOut (
49
txConsumedColumnCheck,
510
basicPrune,

cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Babbage/InlineAndReference.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
{-# LANGUAGE CPP #-}
12
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}
23

4+
#if __GLASGOW_HASKELL__ >= 908
5+
{-# OPTIONS_GHC -Wno-x-partial #-}
6+
#endif
7+
38
module Test.Cardano.Db.Mock.Unit.Babbage.InlineAndReference (
49
unlockDatumOutput,
510
unlockDatumOutputSameBlock,

cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Babbage/Plutus.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE TypeApplications #-}
23

4+
#if __GLASGOW_HASKELL__ >= 908
5+
{-# OPTIONS_GHC -Wno-x-partial #-}
6+
#endif
7+
38
module Test.Cardano.Db.Mock.Unit.Babbage.Plutus (
49
-- plutus spend scripts
510
simpleScript,

cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Babbage/Tx.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
{-# LANGUAGE CPP #-}
2+
3+
#if __GLASGOW_HASKELL__ >= 908
4+
{-# OPTIONS_GHC -Wno-x-partial #-}
5+
#endif
6+
17
module Test.Cardano.Db.Mock.Unit.Babbage.Tx (
28
addSimpleTx,
39
addSimpleTxShelley,

0 commit comments

Comments
 (0)