{-# LANGUAGE DataKinds #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -Wno-orphans #-} module Cardano.Ledger.Allegra.Rules.Bbody () where import Cardano.Ledger.Allegra.Era (AllegraEra) import Cardano.Ledger.Allegra.Rules.Ledgers () import Cardano.Ledger.Core import Cardano.Ledger.Shelley.Rules ( ShelleyBbodyPredFailure (..), ShelleyDelegPredFailure, ShelleyDelegsPredFailure, ShelleyDelplPredFailure, ShelleyLedgerPredFailure, ShelleyLedgersPredFailure, ShelleyPoolPredFailure, ShelleyPpupPredFailure, ShelleyUtxoPredFailure, ShelleyUtxowPredFailure, ) type instance EraRuleFailure "BBODY" AllegraEra = ShelleyBbodyPredFailure AllegraEra instance InjectRuleFailure "BBODY" ShelleyBbodyPredFailure AllegraEra instance InjectRuleFailure "BBODY" ShelleyLedgersPredFailure AllegraEra where injectFailure :: ShelleyLedgersPredFailure AllegraEra -> EraRuleFailure "BBODY" AllegraEra injectFailure = forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure instance InjectRuleFailure "BBODY" ShelleyLedgerPredFailure AllegraEra where injectFailure :: ShelleyLedgerPredFailure AllegraEra -> EraRuleFailure "BBODY" AllegraEra 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 AllegraEra where injectFailure :: ShelleyUtxowPredFailure AllegraEra -> EraRuleFailure "BBODY" AllegraEra 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 AllegraEra where injectFailure :: ShelleyUtxoPredFailure AllegraEra -> EraRuleFailure "BBODY" AllegraEra 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 AllegraEra where injectFailure :: ShelleyPpupPredFailure AllegraEra -> EraRuleFailure "BBODY" AllegraEra 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 AllegraEra where injectFailure :: ShelleyDelegsPredFailure AllegraEra -> EraRuleFailure "BBODY" AllegraEra 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 AllegraEra where injectFailure :: ShelleyDelplPredFailure AllegraEra -> EraRuleFailure "BBODY" AllegraEra 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 AllegraEra where injectFailure :: ShelleyPoolPredFailure AllegraEra -> EraRuleFailure "BBODY" AllegraEra 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 AllegraEra where injectFailure :: ShelleyDelegPredFailure AllegraEra -> EraRuleFailure "BBODY" AllegraEra 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