Skip to content

Commit 105a466

Browse files
committed
Make it build with ghc-9.6
1 parent 1f1c482 commit 105a466

File tree

26 files changed

+92
-38
lines changed

26 files changed

+92
-38
lines changed

cabal.project

Lines changed: 10 additions & 12 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 2023-07-27T01:34:31Z
14-
, cardano-haskell-packages 2023-07-27T07:20:05Z
13+
, hackage.haskell.org 2023-08-09T22:19:16Z
14+
, cardano-haskell-packages 2023-08-09T14:21:51Z
1515

1616
packages:
1717
cardano-db
@@ -21,14 +21,6 @@ packages:
2121
cardano-smash-server
2222
cardano-chain-gen
2323

24-
allow-newer:
25-
text,
26-
ekg-forward
27-
28-
constraints:
29-
persistent-postgresql >= 2.11.0.1,
30-
optparse-applicative >= 0.16.0 && < 0.16.1
31-
3224
package cardano-db
3325
ghc-options: -Wall -Werror -Wredundant-constraints -Wincomplete-uni-patterns -Wincomplete-record-updates -Wpartial-fields -Wunused-imports -Wunused-packages
3426

@@ -71,11 +63,17 @@ package snap-server
7163
source-repository-package
7264
type: git
7365
location: https://github.com/input-output-hk/cardano-node
74-
tag: 408d8ae10a2792ace3a822e312433960e47de4e9
75-
--sha256: sha256-LF8whQABPpSkmyuJrTlK5barYuTiG609yGusHD0fDYQ=
66+
tag: 8163a92d5c39f44ccdd3b9aeac55a30d52a8efb8
67+
--sha256: 0mldj7khhafq8x0vhbm05lmzc1haag36wrkim36mkbcrhf8cxd2x
7668
subdir:
7769
cardano-git-rev
7870
cardano-node
7971
trace-dispatcher
8072
trace-forward
8173
trace-resources
74+
75+
source-repository-package
76+
type: git
77+
location: https://github.com/input-output-hk/persistent-documentation
78+
tag: 0e95dbb144b02a2e6bf3a8a7531f4ad2f7d64ce5
79+
--sha256: 0jylzv9s5rv58m9ny1zna2imqhr4yjgxl3i9rp7rir6xr93c30js

cardano-chain-gen/cardano-chain-gen.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ library
5353
Cardano.Mock.Forging.Tx.Shelley
5454
Cardano.Mock.Forging.Types
5555

56-
build-depends: base >= 4.14 && < 4.17
56+
build-depends: base >= 4.14 && < 5
5757
, async
5858
, aeson
5959
, binary
@@ -181,7 +181,7 @@ test-suite cardano-chain-gen
181181
Test.Cardano.Db.Mock.Validate
182182

183183
build-depends: async
184-
, base >= 4.14 && < 4.17
184+
, base
185185
, bytestring
186186
, cardano-api
187187
, cardano-crypto-class

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
{-# LANGUAGE OverloadedStrings #-}
55
{-# LANGUAGE ScopedTypeVariables #-}
66
{-# LANGUAGE TypeApplications #-}
7+
{-# LANGUAGE TypeOperators #-}
78

89
module Cardano.Mock.Forging.Tx.Generic (
910
allPoolStakeCert,

cardano-chain-gen/test/Test/Cardano/Db/Mock/Validate.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
{-# LANGUAGE NumericUnderscores #-}
55
{-# LANGUAGE OverloadedStrings #-}
66
{-# LANGUAGE ScopedTypeVariables #-}
7+
{-# LANGUAGE TypeOperators #-}
78

89
module Test.Cardano.Db.Mock.Validate (
910
assertBlocksCount,

cardano-db-sync/cardano-db-sync.cabal

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ library
123123

124124
Paths_cardano_db_sync
125125

126-
build-depends: base >= 4.14 && < 4.17
126+
build-depends: base >= 4.14 && < 5
127127
, aeson
128128
, async
129129
, binary
@@ -171,7 +171,6 @@ library
171171
, microlens
172172
, monad-control
173173
, monad-logger
174-
, mtl
175174
, network-mux
176175
, ouroboros-consensus
177176
, ouroboros-consensus-cardano
@@ -227,7 +226,7 @@ executable cardano-db-sync
227226
other-modules: Paths_cardano_db_sync
228227
MigrationValidations
229228

230-
build-depends: base >= 4.14 && < 4.17
229+
build-depends: base
231230
, cardano-db
232231
, cardano-db-sync
233232
, cardano-prelude

cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Generic/Block.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE DataKinds #-}
23
{-# LANGUAGE FlexibleContexts #-}
4+
{-# LANGUAGE NoImplicitPrelude #-}
35
{-# LANGUAGE OverloadedStrings #-}
46
{-# LANGUAGE RankNTypes #-}
57
{-# LANGUAGE ScopedTypeVariables #-}
68
{-# LANGUAGE TypeApplications #-}
79
{-# LANGUAGE TypeFamilies #-}
8-
{-# LANGUAGE NoImplicitPrelude #-}
10+
{-# LANGUAGE TypeOperators #-}
911

1012
module Cardano.DbSync.Era.Shelley.Generic.Block (
1113
Block (..),
@@ -38,6 +40,9 @@ import Cardano.Prelude
3840
import qualified Cardano.Protocol.TPraos.BHeader as TPraos
3941
import qualified Cardano.Protocol.TPraos.OCert as TPraos
4042
import Cardano.Slotting.Slot (SlotNo (..))
43+
#if __GLASGOW_HASKELL__ >= 906
44+
import Data.Type.Equality (type (~))
45+
#endif
4146
import Ouroboros.Consensus.Cardano.Block (
4247
StandardAllegra,
4348
StandardAlonzo,

cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Generic/ParamProposal.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE DataKinds #-}
23
{-# LANGUAGE FlexibleInstances #-}
4+
{-# LANGUAGE NoImplicitPrelude #-}
35
{-# LANGUAGE TypeFamilies #-}
46
{-# LANGUAGE TypeOperators #-}
5-
{-# LANGUAGE NoImplicitPrelude #-}
67

78
module Cardano.DbSync.Era.Shelley.Generic.ParamProposal (
89
ParamProposal (..),
@@ -24,6 +25,9 @@ import qualified Cardano.Ledger.Shelley.PParams as Shelley
2425
import Cardano.Prelude
2526
import Cardano.Slotting.Slot (EpochNo (..))
2627
import qualified Data.Map.Strict as Map
28+
#if __GLASGOW_HASKELL__ >= 906
29+
import Data.Type.Equality (type (~))
30+
#endif
2731
import Lens.Micro ((^.))
2832
import Ouroboros.Consensus.Cardano.Block (StandardAlonzo, StandardBabbage)
2933

cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Generic/StakeDist.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE BangPatterns #-}
23
{-# LANGUAGE DataKinds #-}
34
{-# LANGUAGE FlexibleContexts #-}
45
{-# LANGUAGE GADTs #-}
6+
{-# LANGUAGE NoImplicitPrelude #-}
57
{-# LANGUAGE OverloadedStrings #-}
68
{-# LANGUAGE ScopedTypeVariables #-}
79
{-# LANGUAGE TupleSections #-}
8-
{-# LANGUAGE NoImplicitPrelude #-}
10+
{-# LANGUAGE TypeOperators #-}
911

1012
module Cardano.DbSync.Era.Shelley.Generic.StakeDist (
1113
StakeSliceRes (..),
@@ -24,6 +26,9 @@ import Cardano.Ledger.Keys (KeyHash (..), KeyRole (..))
2426
import qualified Cardano.Ledger.Shelley.LedgerState as Shelley
2527
import Cardano.Prelude
2628
import qualified Data.Map.Strict as Map
29+
#if __GLASGOW_HASKELL__ >= 906
30+
import Data.Type.Equality (type (~))
31+
#endif
2732
import Data.VMap (VB, VMap (..), VP)
2833
import qualified Data.VMap as VMap
2934
import qualified Data.Vector.Generic as VG

cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Generic/Tx/Allegra.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE DataKinds #-}
23
{-# LANGUAGE FlexibleContexts #-}
34
{-# LANGUAGE GADTs #-}
5+
{-# LANGUAGE NoImplicitPrelude #-}
46
{-# LANGUAGE RankNTypes #-}
57
{-# LANGUAGE ScopedTypeVariables #-}
68
{-# LANGUAGE TypeApplications #-}
7-
{-# LANGUAGE NoImplicitPrelude #-}
9+
{-# LANGUAGE TypeOperators #-}
810

911
module Cardano.DbSync.Era.Shelley.Generic.Tx.Allegra (
1012
fromAllegraTx,
@@ -40,6 +42,9 @@ import Cardano.Slotting.Slot (SlotNo (..))
4042
import qualified Data.Aeson as Aeson
4143
import qualified Data.ByteString.Lazy.Char8 as LBS
4244
import qualified Data.Map.Strict as Map
45+
#if __GLASGOW_HASKELL__ >= 906
46+
import Data.Type.Equality (type (~))
47+
#endif
4348
import Lens.Micro ((^.))
4449
import Ouroboros.Consensus.Cardano.Block (StandardAllegra, StandardCrypto)
4550

cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Generic/Tx/Alonzo.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE DataKinds #-}
23
{-# LANGUAGE FlexibleContexts #-}
34
{-# LANGUAGE GADTs #-}
5+
{-# LANGUAGE NoImplicitPrelude #-}
46
{-# LANGUAGE RankNTypes #-}
57
{-# LANGUAGE ScopedTypeVariables #-}
68
{-# LANGUAGE TypeApplications #-}
7-
{-# LANGUAGE NoImplicitPrelude #-}
9+
{-# LANGUAGE TypeOperators #-}
810

911
module Cardano.DbSync.Era.Shelley.Generic.Tx.Alonzo (
1012
fromAlonzoTx,
@@ -58,6 +60,9 @@ import qualified Data.ByteString.Lazy.Char8 as LBS
5860
import qualified Data.ByteString.Short as SBS
5961
import qualified Data.Map.Strict as Map
6062
import qualified Data.Set as Set
63+
#if __GLASGOW_HASKELL__ >= 906
64+
import Data.Type.Equality (type (~))
65+
#endif
6166
import Lens.Micro
6267
import Ouroboros.Consensus.Cardano.Block (EraCrypto, StandardAlonzo, StandardCrypto)
6368

0 commit comments

Comments
 (0)