Skip to content

Commit

Permalink
GHC 9.2 compatibility fixes. (#4181)
Browse files Browse the repository at this point in the history
This PR includes a small number of patches that enable compatibility
with GHC 9.2, while retaining compatibility with GHC 8.10.7.

(Note that this PR does **_not_** change the GHC version used in our nix
environment, which remains at 8.10.7. For a PR that changes our nix
environment to use GHC version 9.2.8, see:
#4171)
  • Loading branch information
jonathanknowles authored Oct 26, 2023
2 parents 7d8a829 + ca75cd1 commit 30bf053
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/wallet-e2e/src/Cardano/Wallet/Spec/Effect/Trace.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import Path.IO
import Prelude hiding
( modify
, runState
, trace
)

data FxTrace :: Effect where
Expand Down
6 changes: 5 additions & 1 deletion lib/wallet/bench/db-bench.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE FlexibleContexts #-}
Expand All @@ -14,9 +15,12 @@
{-# LANGUAGE TypeFamilies #-}

{-# OPTIONS_GHC -fno-warn-orphans #-}
-- {-# OPTIONS_GHC -Wno-ambiguous-fields #-}
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}

#if __GLASGOW_HASKELL__ >= 902
{-# OPTIONS_GHC -Wno-ambiguous-fields #-}
#endif

-- |
-- Copyright: © 2018-2020 IOHK
-- License: Apache-2.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}

module Test.Integration.Scenario.API.Shelley.StakePools (spec) where

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
{-# LANGUAGE TypeFamilies #-}

{-# OPTIONS_GHC -Wno-unused-imports #-} -- temportary, until addRequiredSigners is fixed
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}

module Test.Integration.Scenario.API.Shelley.TransactionsNew (spec) where

Expand Down

0 comments on commit 30bf053

Please sign in to comment.