Skip to content

Commit

Permalink
Make it build with ghc-9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
erikd committed May 30, 2023
1 parent c160399 commit 4202fa4
Show file tree
Hide file tree
Showing 188 changed files with 444 additions and 166 deletions.
64 changes: 58 additions & 6 deletions cabal.project
Expand Up @@ -14,9 +14,10 @@ repository cardano-haskell-packages
-- update either of these.
index-state: 2023-04-28T00:00:00Z
index-state:
, hackage.haskell.org 2023-04-28T00:00:00Z
-- Bump this if you need newer packages from CHaP
, cardano-haskell-packages 2023-05-09T09:56:38Z
-- Bump this if you need newer packages from Hackage
, hackage.haskell.org 2023-05-28T23:23:01Z
-- Bump this if you need newer packages from CHaP
, cardano-haskell-packages 2023-05-28T23:23:01Z

packages:
eras/allegra/impl
Expand Down Expand Up @@ -86,14 +87,32 @@ benchmarks: true
-- The only sensible test display option
test-show-details: streaming

constraints:
-- Earlier versions have a slightly different set of type constraints.
persistent >= 2.14


if impl(ghc >= 9.6)
allow-newer:
, *:base
, *:ghc-prim
, *:template-haskell
-- https://github.com/yesodweb/persistent/pull/1499
, persistent:*
-- https://github.com/protolude/protolude/pull/143
, protolude:*

-- https://github.com/kowainik/validation-selective/issues/76
, validation-selective:selective

-- This is an unreleased version of `weigh` that includes `WallTime`.
-- It's okay for us to have this since it's only our benchmarks
-- that depend on `weigh`, not our released packages.
source-repository-package
type: git
location: https://github.com/fpco/weigh.git
tag: bfcf4415144d7d2817dfcb91b6f9a6dfd7236de7
--sha256: 01fy4nbq6kaqi73ydn6w7rd1izkg5p217q5znyp2icybf41sl1b6
location: https://github.com/input-output-hk/weigh
tag: c67fb1a84e78cb1b81d078f2df9c76a6382b5e00
--sha256: 0bksg3nm002yv1kf9irb574qj2fdlif4bhfq54fygm7xj118mjpr

-- https://github.com/well-typed/cborg/pull/301
source-repository-package
Expand All @@ -103,3 +122,36 @@ source-repository-package
--sha256: 18apsg2lqjv9cc29nbd3hzj2hqhksqjj0s4xp2rdv8cbd27racjh
subdir:
cborg


-- https://github.com/mokus0/th-extras/pull/21
source-repository-package
type: git
location: https://github.com/erikd/th-extras
tag: fa8a2855883220480b80ca0d8224e9c3a8cd2c4a
--sha256: 1fdbjjc0icyi1zh7j9sx8qfh0hk88mg0211dmyx0wyzkgz27bbzq

-- https://github.com/kowainik/validation-selective/pull/77
source-repository-package
type: git
location: https://github.com/erikd/validation-selective
tag: 3066eebc6718062e4c6b02369663f3c28f5e9b65
--sha256: 0gk96wkb1gf8qwqv7v30vnzs5sq6v57ay55wjlxb28r3y07ymd9k

-- HEAD builds but has not yet been released to Hackage
-- https://github.com/haskell-streaming/streaming/issues/119
source-repository-package
type: git
location: https://github.com/haskell-streaming/streaming
tag: 0c815bf9043d0f0cbda92b80ef791892e2b7fb43
--sha256: 0q01mvag2f2xw8dnk6v7dq26gw8zvskgax39ljbf7pblm6n2c4wk

-- https://github.com/yesodweb/persistent/pull/1499
source-repository-package
type: git
location: https://github.com/erikd/persistent
tag: 3cf614e5044862d0733f55fd39623d73a8e5469e
--sha256: 076il4h2pcfpfd0l0vrdynbpascq5yv8an8g4lw41xmj4bzfwlj8
subdir:
persistent
persistent-sqlite
2 changes: 1 addition & 1 deletion eras/allegra/impl/cardano-ledger-allegra.cabal
Expand Up @@ -48,7 +48,7 @@ library
-Wunused-packages

build-depends:
base >=4.14 && <4.17,
base >=4.14 && <4.19,
bytestring,
cardano-crypto-class,
cardano-ledger-binary >=1.0,
Expand Down
1 change: 1 addition & 0 deletions eras/allegra/impl/src/Cardano/Ledger/Allegra/Core.hs
@@ -1,4 +1,5 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE UndecidableSuperClasses #-}

module Cardano.Ledger.Allegra.Core (
AllegraEraTxBody (..),
Expand Down
1 change: 1 addition & 0 deletions eras/allegra/impl/src/Cardano/Ledger/Allegra/Rules/Utxo.hs
Expand Up @@ -9,6 +9,7 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

Expand Down
Expand Up @@ -4,6 +4,7 @@
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

Expand Down
1 change: 1 addition & 0 deletions eras/allegra/impl/src/Cardano/Ledger/Allegra/Scripts.hs
Expand Up @@ -13,6 +13,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE ViewPatterns #-}
{-# OPTIONS_GHC -Wno-orphans #-}
Expand Down
1 change: 1 addition & 0 deletions eras/allegra/impl/src/Cardano/Ledger/Allegra/TxAuxData.hs
Expand Up @@ -11,6 +11,7 @@
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE ViewPatterns #-}
{-# OPTIONS_GHC -Wno-orphans #-}
Expand Down
1 change: 1 addition & 0 deletions eras/allegra/impl/src/Cardano/Ledger/Allegra/TxBody.hs
Expand Up @@ -11,6 +11,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE ViewPatterns #-}
{-# OPTIONS_GHC -Wno-orphans #-}
Expand Down
6 changes: 3 additions & 3 deletions eras/alonzo/impl/cardano-ledger-alonzo.cabal
Expand Up @@ -58,7 +58,7 @@ library
-Wunused-packages

build-depends:
base >=4.14 && <4.17,
base >=4.14 && <4.19,
aeson >=2,
base-deriving-via,
base64-bytestring,
Expand All @@ -81,8 +81,8 @@ library
mtl,
microlens,
nothunks,
plutus-ledger-api ^>=1.6,
plutus-core ^>=1.6,
plutus-ledger-api ^>=1.7,
plutus-core ^>=1.7,
prettyprinter,
serialise,
set-algebra >=1.0,
Expand Down
1 change: 1 addition & 0 deletions eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Core.hs
Expand Up @@ -5,6 +5,7 @@
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE UndecidableSuperClasses #-}

module Cardano.Ledger.Alonzo.Core (
AlonzoEraTxOut (..),
Expand Down
Expand Up @@ -9,6 +9,7 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}

module Cardano.Ledger.Alonzo.PlutusScriptApi (
Expand Down
1 change: 1 addition & 0 deletions eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Rules/Bbody.hs
Expand Up @@ -9,6 +9,7 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

Expand Down
1 change: 1 addition & 0 deletions eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Rules/Ledger.hs
Expand Up @@ -7,6 +7,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

Expand Down
1 change: 1 addition & 0 deletions eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Rules/Utxo.hs
Expand Up @@ -11,6 +11,7 @@
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

Expand Down
1 change: 1 addition & 0 deletions eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Rules/Utxos.hs
Expand Up @@ -12,6 +12,7 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

Expand Down
1 change: 1 addition & 0 deletions eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Rules/Utxow.hs
Expand Up @@ -11,6 +11,7 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

Expand Down
1 change: 1 addition & 0 deletions eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Scripts.hs
Expand Up @@ -15,6 +15,7 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

Expand Down
1 change: 1 addition & 0 deletions eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Scripts/Data.hs
Expand Up @@ -15,6 +15,7 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE ViewPatterns #-}
-- This is needed for the `HeapWords (StrictMaybe (DataHash c))` instance
Expand Down
2 changes: 2 additions & 0 deletions eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Tx.hs
Expand Up @@ -15,7 +15,9 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE UndecidableSuperClasses #-}
{-# OPTIONS_GHC -Wno-orphans #-}

-- | This module exports implementations of many of the functions outlined in the Alonzo specification.
Expand Down
1 change: 1 addition & 0 deletions eras/alonzo/impl/src/Cardano/Ledger/Alonzo/TxAuxData.hs
Expand Up @@ -15,6 +15,7 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE ViewPatterns #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
Expand Down
2 changes: 2 additions & 0 deletions eras/alonzo/impl/src/Cardano/Ledger/Alonzo/TxInfo.hs
Expand Up @@ -13,7 +13,9 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE UndecidableSuperClasses #-}

module Cardano.Ledger.Alonzo.TxInfo (
TxOutSource (..),
Expand Down
2 changes: 2 additions & 0 deletions eras/alonzo/impl/src/Cardano/Ledger/Alonzo/TxWits.hs
Expand Up @@ -13,7 +13,9 @@
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE UndecidableSuperClasses #-}
{-# LANGUAGE ViewPatterns #-}
{-# OPTIONS_GHC -Wno-orphans #-}

Expand Down
Expand Up @@ -9,6 +9,7 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

Expand Down
4 changes: 2 additions & 2 deletions eras/alonzo/test-suite/cardano-ledger-alonzo-test.cabal
Expand Up @@ -47,7 +47,7 @@ library
-Wunused-packages

build-depends:
base >=4.14 && <4.17,
base >=4.14 && <4.19,
bytestring,
cardano-ledger-alonzo:{cardano-ledger-alonzo, testlib} >=1.2,
cardano-ledger-binary:{cardano-ledger-binary, testlib} >=1.0,
Expand All @@ -66,7 +66,7 @@ library
data-default-class,
microlens,
plutus-tx,
plutus-ledger-api:{plutus-ledger-api, plutus-ledger-api-testlib} ^>=1.6,
plutus-ledger-api:{plutus-ledger-api, plutus-ledger-api-testlib} ^>=1.7,
QuickCheck,
random,
serialise,
Expand Down
Expand Up @@ -5,6 +5,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}

Expand Down
Expand Up @@ -6,6 +6,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
-- HasTrace instances for AlonzoLEDGE
{-# OPTIONS_GHC -fno-warn-orphans #-}
Expand Down
Expand Up @@ -3,6 +3,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableSuperClasses #-}

module Test.Cardano.Ledger.Alonzo.Translation.TranslatableGen (
TranslatableGen (..),
Expand Down
4 changes: 2 additions & 2 deletions eras/babbage/impl/cardano-ledger-babbage.cabal
Expand Up @@ -53,7 +53,7 @@ library
-Wunused-packages

build-depends:
base >=4.14 && <4.17,
base >=4.14 && <4.19,
aeson,
bytestring,
cardano-crypto-class,
Expand All @@ -70,7 +70,7 @@ library
deepseq,
microlens,
nothunks,
plutus-ledger-api ^>=1.6,
plutus-ledger-api ^>=1.7,
set-algebra,
small-steps,
text,
Expand Down
1 change: 1 addition & 0 deletions eras/babbage/impl/src/Cardano/Ledger/Babbage/Core.hs
Expand Up @@ -3,6 +3,7 @@
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE UndecidableSuperClasses #-}

module Cardano.Ledger.Babbage.Core (
BabbageEraTxOut (..),
Expand Down
1 change: 1 addition & 0 deletions eras/babbage/impl/src/Cardano/Ledger/Babbage/PParams.hs
Expand Up @@ -12,6 +12,7 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

Expand Down
Expand Up @@ -7,6 +7,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

Expand Down
1 change: 1 addition & 0 deletions eras/babbage/impl/src/Cardano/Ledger/Babbage/Rules/Utxo.hs
Expand Up @@ -8,6 +8,7 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

Expand Down
Expand Up @@ -7,6 +7,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

Expand Down
Expand Up @@ -6,6 +6,7 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

Expand Down
1 change: 1 addition & 0 deletions eras/babbage/impl/src/Cardano/Ledger/Babbage/Scripts.hs
Expand Up @@ -6,6 +6,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -Wno-orphans #-}

-- | Figure 3: Functions related to scripts
Expand Down

0 comments on commit 4202fa4

Please sign in to comment.