{-# 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 = ShelleyBbodyPredFailure MaryEra instance InjectRuleFailure "BBODY" ShelleyBbodyPredFailure MaryEra instance InjectRuleFailure "BBODY" ShelleyLedgersPredFailure MaryEra where injectFailure :: ShelleyLedgersPredFailure MaryEra -> EraRuleFailure "BBODY" MaryEra injectFailure = forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure instance InjectRuleFailure "BBODY" ShelleyLedgerPredFailure MaryEra where injectFailure :: ShelleyLedgerPredFailure MaryEra -> EraRuleFailure "BBODY" MaryEra 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 where injectFailure :: ShelleyUtxowPredFailure MaryEra -> EraRuleFailure "BBODY" MaryEra 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 where injectFailure :: ShelleyUtxoPredFailure MaryEra -> EraRuleFailure "BBODY" MaryEra 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 where injectFailure :: ShelleyPpupPredFailure MaryEra -> EraRuleFailure "BBODY" MaryEra 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 where injectFailure :: ShelleyDelegsPredFailure MaryEra -> EraRuleFailure "BBODY" MaryEra 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 where injectFailure :: ShelleyDelplPredFailure MaryEra -> EraRuleFailure "BBODY" MaryEra 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 where injectFailure :: ShelleyPoolPredFailure MaryEra -> EraRuleFailure "BBODY" MaryEra 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 where injectFailure :: ShelleyDelegPredFailure MaryEra -> EraRuleFailure "BBODY" MaryEra 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