Skip to content

Commit

Permalink
tx-submission: compile with ghc < 9.10
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Sep 18, 2024
1 parent 8a78586 commit 11d833b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE BlockArguments #-}
{-# LANGUAGE DeriveGeneric #-}
Expand All @@ -18,7 +19,11 @@ import Prelude hiding (seq)

import Control.Exception (assert)

import Data.Foldable as Foldable (fold, toList)
import Data.Foldable (fold,
#if !MIN_VERSION_base(4,20,0)
foldl',
#endif
toList)
import Data.List (intercalate, isPrefixOf, isSuffixOf, mapAccumR, nub,
stripPrefix)
import Data.Map.Merge.Strict qualified as Map
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE BlockArguments #-}
{-# LANGUAGE LambdaCase #-}
Expand All @@ -21,7 +22,11 @@ import Control.Monad.Class.MonadFork
import Control.Monad.Class.MonadThrow
import Control.Monad.Class.MonadTimer.SI

import Data.Foldable (traverse_)
import Data.Foldable (traverse_
#if !MIN_VERSION_base(4,20,0)
, foldl'
#endif
)
import Data.Map.Strict (Map)
import Data.Map.Strict qualified as Map
import Data.Maybe (fromMaybe)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import Control.Exception (assert)
import Control.Tracer (Tracer, traceWith)

import Data.Foldable (fold,
#if MIN_VERSION_base(4,20,0)
#if !MIN_VERSION_base(4,20,0)
foldl',
#endif
toList)
Expand Down
4 changes: 3 additions & 1 deletion scripts/ci/check-stylish-ignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
*/Setup.hs
ouroboros-network/src/Ouroboros/Network/TxSubmission/Inbound/State.hs
ouroboros-network/src/Ouroboros/Network/PeerSelection/Governor/TxLogic.hs
ouroboros-network/src/Ouroboros/Network/PeerSelection/Governor/Types.hs
ouroboros-network/src/Ouroboros/Network/TxSubmission/Inbound/Registry.hs
ouroboros-network/src/Ouroboros/Network/TxSubmission/Inbound/State.hs
network-mux/src/Network/Mux/TCPInfo.hs
network-mux/src/Network/Mux/Bearer.hs
network-mux/src/Network/Mux/Bearer/Pipe.hs
Expand Down

0 comments on commit 11d833b

Please sign in to comment.