Skip to content

Commit

Permalink
Fixed problems with CI GHC9.82 and GHC9.64
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSheard committed May 3, 2024
1 parent d00b4c5 commit 57400d9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dStateSpec ::
Specification fn (DState (ConwayEra StandardCrypto))
dStateSpec = constrained $ \ds ->
match ds $ \umap _futureGenDelegs _genDelegs _rewards ->
match umap $ {- \ umapRep -> match umapRep $ -} \rdMap ptrMap sPoolMap _dRepMap ->
match umap $ \rdMap ptrMap sPoolMap _dRepMap ->
[ assertExplain ["dom sPoolMap is a subset of dom rdMap"] $ dom_ sPoolMap `subset_` dom_ rdMap
, assertExplain ["dom ptrMap is empty"] $ dom_ ptrMap ==. mempty
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE UndecidableSuperClasses #-}
{-# OPTIONS_GHC -Wno-orphans #-}

-- RecordWildCards cause name shadowing warnings in ghc-8.10.
Expand Down Expand Up @@ -289,7 +290,7 @@ deriving via Integer instance Num DeltaCoin

instance HasSimpleRep (GovProcedures era)
instance
( Era era
( EraPParams era
, EraPP era
, IsConwayUniv fn
, HasSimpleRep (PParamsHKD StrictMaybe era)
Expand Down Expand Up @@ -888,6 +889,7 @@ instance HasSimpleRep (GovAction era)
instance
( IsConwayUniv fn
, EraPP era
, EraPParams era
, HasSimpleRep (PParamsHKD StrictMaybe era)
, TypeSpec fn (SimpleRep (PParamsHKD StrictMaybe era)) ~ TypeSpec fn (PParamsHKD StrictMaybe era)
, HasSpec fn (SimpleRep (PParamsHKD StrictMaybe era))
Expand Down Expand Up @@ -1007,6 +1009,7 @@ instance HasSimpleRep (ProposalProcedure era)
instance
( IsConwayUniv fn
, EraPP era
, EraPParams era
, HasSimpleRep (PParamsHKD StrictMaybe era)
, TypeSpec fn (SimpleRep (PParamsHKD StrictMaybe era)) ~ TypeSpec fn (PParamsHKD StrictMaybe era)
, HasSpec fn (SimpleRep (PParamsHKD StrictMaybe era))
Expand Down Expand Up @@ -1491,7 +1494,7 @@ deltaToCoin (DeltaCoin i) = Coin i
-- This allow us to use PParamsSubset as the (SimpleRep (PParams era))
-- Much easier to constrain PParamSubset than (PParams era) with all the THKD stuff.
class
( EraPParams era
( Era era
, Eq (PParamsHKD Identity era)
, Show (PParamsHKD Identity era)
, Eq (PParamsHKD StrictMaybe era)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE UndecidableSuperClasses #-}
{-# OPTIONS_GHC -Wno-orphans #-}

-- | Specs necessary to generate constrained (well formed) values in the Cardano Ledger.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -Wno-orphans #-}

module Test.Cardano.Ledger.Constrained.Trace.TraceMonad where

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

module Test.Cardano.Ledger.Generic.MockChain where

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}

module Test.Cardano.Ledger.Generic.Trace where

Expand Down

0 comments on commit 57400d9

Please sign in to comment.