Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
NanuIjaz committed Feb 24, 2024
2 parents bc08b17 + 3225079 commit bf84274
Show file tree
Hide file tree
Showing 29 changed files with 133 additions and 36 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fail-fast: false
matrix:
# If you edit these versions, make sure the version in the lonely macos-latest job below is updated accordingly
ghc: ["9.6.4"]
ghc: ["9.6.4", "9.8.1"]
cabal: ["3.10.2.1"]
os: [windows-latest, ubuntu-latest]
include:
Expand All @@ -38,7 +38,7 @@ jobs:

env:
# Modify this value to "invalidate" the cabal cache.
CABAL_CACHE_VERSION: "2024-02-07"
CABAL_CACHE_VERSION: "2024-02-15"

concurrency:
group: >
Expand Down
2 changes: 1 addition & 1 deletion bench/locli/locli.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ test-suite test-locli
build-depends: cardano-prelude
, containers
, hedgehog
, hedgehog-extras ^>= 0.6.0
, hedgehog-extras < 0.6.1
, locli
, text

Expand Down
5 changes: 5 additions & 0 deletions bench/locli/src/Cardano/Analysis/BlockProp.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE StrictData #-}

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif

{-# OPTIONS_GHC -Wno-incomplete-patterns -Wno-name-shadowing #-}
{-# OPTIONS_GHC -Wno-unused-imports -Wno-partial-fields -Wno-unused-matches -Wno-deprecations -Wno-unused-local-binds -Wno-incomplete-record-updates #-}

Expand Down
6 changes: 6 additions & 0 deletions bench/locli/src/Cardano/Analysis/MachPerf.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE MultiWayIf #-}

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif

{-# OPTIONS_GHC -Wno-incomplete-patterns -Wno-name-shadowing -Wno-orphans #-}
{- HLINT ignore "Use head" -}
{- HLINT ignore "Evaluate" -}
Expand Down
6 changes: 6 additions & 0 deletions bench/locli/src/Cardano/Analysis/Summary.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE GeneralisedNewtypeDeriving #-}
{-# LANGUAGE UndecidableInstances #-}

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif

{-# OPTIONS_GHC -Wno-name-shadowing -Wno-orphans #-}

{- HLINT ignore "Use mapMaybe" -}
Expand Down
4 changes: 4 additions & 0 deletions bench/locli/src/Cardano/Render.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif

{- HLINT ignore "Use concatMap" -}
{- HLINT ignore "Use fromMaybe" -}

Expand Down
6 changes: 6 additions & 0 deletions bench/locli/test/Test/Analysis/CDF.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -Wno-missing-signatures #-}

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif

module Test.Analysis.CDF where

import Cardano.Prelude hiding (handle, head)
Expand Down
10 changes: 5 additions & 5 deletions bench/plutus-scripts-bench/plutus-scripts-bench.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 3.0
name: plutus-scripts-bench
version: 1.0.1.0
version: 1.0.2.0
synopsis: Plutus scripts used for benchmarking
description: Plutus scripts used for benchmarking.
category: Cardano,
Expand All @@ -27,10 +27,10 @@ common project-config
if os(windows)
buildable: False

if impl(ghc < 9.6)
-- This echoes the ghc range in the plutus-tx-plugin cabal file.
if (impl(ghc <9.6) || impl(ghc >=9.7))
buildable: False


common common-definitions
build-depends: base >= 4.14 && < 5
default-language: Haskell2010
Expand Down Expand Up @@ -73,10 +73,10 @@ library
-- IOG dependencies
--------------------------
build-depends:
, cardano-api ^>= 8.38
, cardano-api ^>= 8.38.0.0
, plutus-ledger-api >=1.0.0
, plutus-tx >=1.0.0
, plutus-tx-plugin >=1.0.0
, plutus-tx-plugin ^>=1.21

------------------------
-- Non-IOG dependencies
Expand Down
12 changes: 7 additions & 5 deletions bench/tx-generator/tx-generator.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cabal-version: 3.0

name: tx-generator
version: 2.10
version: 2.11
synopsis: A transaction workload generator for Cardano clusters
description: A transaction workload generator for Cardano clusters.
category: Cardano,
Expand All @@ -26,11 +26,13 @@ common project-config
buildable: False

common with-library
if impl(ghc >= 9.6)
build-depends: plutus-scripts-bench
-- This is the inverse to the "buildable" GHC version constraint in plutus-scripts-bench.
-- It makes sure, we only depend on that package if it is buildable.
-- The tx-generator will fall back to pre-serialized Plutus scripts if this package is not present.
if !(impl(ghc <9.6) || impl(ghc >=9.7))
build-depends: plutus-scripts-bench ^>= 1.0.2
cpp-options: -DWITH_LIBRARY


library
import: project-config, with-library

Expand Down Expand Up @@ -98,7 +100,7 @@ library
, attoparsec-aeson
, base16-bytestring
, bytestring
, cardano-api ^>= 8.38
, cardano-api ^>= 8.38.0.0
, cardano-binary
, cardano-cli ^>= 8.20.1.0
, cardano-crypto-class
Expand Down
4 changes: 2 additions & 2 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ repository cardano-haskell-packages
-- See CONTRIBUTING for information about these, including some Nix commands
-- you need to run if you change them
index-state:
, hackage.haskell.org 2024-02-06T15:14:59Z
, cardano-haskell-packages 2024-02-20T15:00:00Z
, hackage.haskell.org 2024-02-21T10:56:14Z
, cardano-haskell-packages 2024-02-21T14:57:01Z

packages:
cardano-git-rev
Expand Down
2 changes: 1 addition & 1 deletion cardano-node-chairman/cardano-node-chairman.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ test-suite chairman-tests
, cardano-crypto-class ^>= 2.1.2
, filepath
, hedgehog
, hedgehog-extras ^>= 0.6.0
, hedgehog-extras < 0.6.1
, network
, process
, random
Expand Down
2 changes: 1 addition & 1 deletion cardano-node/cardano-node.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ library
, async
, base16-bytestring
, bytestring
, cardano-api ^>= 8.38
, cardano-api ^>= 8.38.0.0
, cardano-crypto-class
, cardano-crypto-wrapper
, cardano-git-rev
Expand Down
2 changes: 1 addition & 1 deletion cardano-submit-api/cardano-submit-api.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ library
, aeson
, async
, bytestring
, cardano-api ^>= 8.38
, cardano-api ^>= 8.38.0.0
, cardano-binary
, cardano-cli ^>= 8.20.1.0
, cardano-crypto-class ^>= 2.1.2
Expand Down
2 changes: 1 addition & 1 deletion cardano-testnet/cardano-testnet.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ library
, exceptions
, filepath
, hedgehog
, hedgehog-extras ^>= 0.6.0
, hedgehog-extras < 0.6.1
, microlens
, lens-aeson
, mtl
Expand Down
5 changes: 5 additions & 0 deletions cardano-testnet/src/Testnet/Start/Cardano.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif

module Testnet.Start.Cardano
( ForkPoint(..)
, CardanoTestnetOptions(..)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE BlockArguments #-}
{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
Expand All @@ -8,6 +9,10 @@

{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif

{- HLINT ignore "Redundant id" -}
{- HLINT ignore "Redundant return" -}
{- HLINT ignore "Use head" -}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE NumericUnderscores #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}

{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
{-# LANGUAGE LambdaCase #-}

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif

{- HLINT ignore "Redundant id" -}
{- HLINT ignore "Redundant return" -}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif

module Cardano.Testnet.Test.Cli.Conway.DRepRetirement
( hprop_drep_retirement
) where
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE GADTs #-}
Expand All @@ -7,6 +8,10 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif

module Cardano.Testnet.Test.Cli.KesPeriodInfo
( hprop_kes_period_info
) where
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DerivingVia #-}
{-# LANGUAGE LambdaCase #-}
Expand All @@ -7,6 +8,11 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}

#if __GLASGOW_HASKELL__ >= 908
-- Data.List has a lot of partial functions and GHC >= 9.8 warns about these.
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif

module Cardano.Testnet.Test.LedgerEvents.Gov.InfoAction
( hprop_ledger_events_info_action
) where
Expand Down Expand Up @@ -371,3 +377,4 @@ foldBlocksCheckInfoAction df govActionIdx _ ls allEvents _ acc = do
| length votes == 3 -> ias{hasReceivedVotes = True}
_ -> ias
_ -> ias

Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE NumericUnderscores #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif

module Cardano.Testnet.Test.LedgerEvents.Gov.ProposeNewConstitution
( hprop_ledger_events_propose_new_constitution
, foldBlocksCheckProposalWasSubmitted
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif

module Cardano.Testnet.Test.LedgerEvents.Gov.ProposeNewConstitutionSPO
( hprop_ledger_events_propose_new_constitution_spo
) where
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NamedFieldPuns #-}
Expand All @@ -6,6 +7,10 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif

{- HLINT ignore "Redundant id" -}
{- HLINT ignore "Redundant return" -}
{- HLINT ignore "Use head" -}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif

module Cardano.Tracer.Handlers.RTView.Update.Peers
( updateNodesPeers
) where
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UndecidableInstances #-}

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
#endif


module Cardano.Tracer.Test.ForwardingStressTest.Script
( TestSetup(..)
, simpleTestConfig
Expand Down
Loading

0 comments on commit bf84274

Please sign in to comment.