{-# LANGUAGE DataKinds #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -Wno-orphans #-} module Cardano.Ledger.Mary.Rules.Bbody () where import Cardano.Ledger.Core import Cardano.Ledger.Mary.Era (MaryEra) import Cardano.Ledger.Mary.Rules.Ledgers () import Cardano.Ledger.Shelley.Rules ( ShelleyBbodyPredFailure (..), ShelleyDelegPredFailure, ShelleyDelegsPredFailure, ShelleyDelplPredFailure, ShelleyLedgerPredFailure, ShelleyLedgersPredFailure, ShelleyPoolPredFailure, ShelleyPpupPredFailure, ShelleyUtxoPredFailure, ShelleyUtxowPredFailure, ) type instance EraRuleFailure "BBODY" (MaryEra c) = ShelleyBbodyPredFailure (MaryEra c) instance InjectRuleFailure "BBODY" ShelleyBbodyPredFailure (MaryEra c) instance InjectRuleFailure "BBODY" ShelleyLedgersPredFailure (MaryEra c) where injectFailure :: ShelleyLedgersPredFailure (MaryEra c) -> EraRuleFailure "BBODY" (MaryEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure instance InjectRuleFailure "BBODY" ShelleyLedgerPredFailure (MaryEra c) where injectFailure :: ShelleyLedgerPredFailure (MaryEra c) -> EraRuleFailure "BBODY" (MaryEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "BBODY" ShelleyUtxowPredFailure (MaryEra c) where injectFailure :: ShelleyUtxowPredFailure (MaryEra c) -> EraRuleFailure "BBODY" (MaryEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "BBODY" ShelleyUtxoPredFailure (MaryEra c) where injectFailure :: ShelleyUtxoPredFailure (MaryEra c) -> EraRuleFailure "BBODY" (MaryEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "BBODY" ShelleyPpupPredFailure (MaryEra c) where injectFailure :: ShelleyPpupPredFailure (MaryEra c) -> EraRuleFailure "BBODY" (MaryEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "BBODY" ShelleyDelegsPredFailure (MaryEra c) where injectFailure :: ShelleyDelegsPredFailure (MaryEra c) -> EraRuleFailure "BBODY" (MaryEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "BBODY" ShelleyDelplPredFailure (MaryEra c) where injectFailure :: ShelleyDelplPredFailure (MaryEra c) -> EraRuleFailure "BBODY" (MaryEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "BBODY" ShelleyPoolPredFailure (MaryEra c) where injectFailure :: ShelleyPoolPredFailure (MaryEra c) -> EraRuleFailure "BBODY" (MaryEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "BBODY" ShelleyDelegPredFailure (MaryEra c) where injectFailure :: ShelleyDelegPredFailure (MaryEra c) -> EraRuleFailure "BBODY" (MaryEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure