Skip to content

Commit

Permalink
TOSQUASH ghc 8.10
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo committed Dec 5, 2024
1 parent 3affc09 commit 8314cee
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ouroboros-consensus-cardano/app/DBAnalyser/Parsers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ parseValidationPolicy =
_ -> Nothing

parseAnalysis :: Parser AnalysisName
parseAnalysis = asum [
parseAnalysis = Foldable.asum [
flag' ShowSlotBlockNo $ mconcat [
long "show-slot-block-no"
, help "Show slot and block number and hash of all blocks"
Expand Down Expand Up @@ -150,7 +150,7 @@ checkNoThunksParser = CheckNoThunksEvery <$> option auto
<> help "Check the ledger state for thunks every n blocks" )

parseLimit :: Parser Limit
parseLimit = asum [
parseLimit = Foldable.asum [
Limit <$> option auto (mconcat [
long "num-blocks-to-process"
, help "Maximum number of blocks we want to process"
Expand Down Expand Up @@ -244,7 +244,7 @@ parseShelleyArgs = ShelleyBlockArgs
, help "Path to config file"
, metavar "PATH"
])
<*> asum [ Nonce <$> parseNonce
<*> Foldable.asum [ Nonce <$> parseNonce
, pure NeutralNonce]
where
parseNonce = strOption (mconcat [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@

{-# OPTIONS_GHC -Wno-orphans #-}

#if __GLASGOW_HASKELL__ <= 906
{-# OPTIONS_GHC -Wno-incomplete-patterns
-Wno-incomplete-uni-patterns
-Wno-incomplete-record-updates
-Wno-overlapping-patterns #-}
#endif

module Ouroboros.Consensus.Cardano.Ledger (
CardanoTxOut (..)
, eliminateCardanoTxOut
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
Expand All @@ -18,6 +19,12 @@
{-# LANGUAGE UndecidableInstances #-}

{-# OPTIONS_GHC -Wno-orphans #-}
#if __GLASGOW_HASKELL__ <= 906
{-# OPTIONS_GHC -Wno-incomplete-patterns
-Wno-incomplete-uni-patterns
-Wno-incomplete-record-updates
-Wno-overlapping-patterns #-}
#endif

module Ouroboros.Consensus.Shelley.Ledger.Ledger (
LedgerState (..)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
Expand All @@ -19,6 +20,12 @@
{-# LANGUAGE UndecidableInstances #-}

{-# OPTIONS_GHC -Wno-orphans #-}
#if __GLASGOW_HASKELL__ <= 906
{-# OPTIONS_GHC -Wno-incomplete-patterns
-Wno-incomplete-uni-patterns
-Wno-incomplete-record-updates
-Wno-overlapping-patterns #-}
#endif

module Ouroboros.Consensus.Shelley.Ledger.Query (
BlockQuery (..)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
Expand Down

0 comments on commit 8314cee

Please sign in to comment.