{-# LANGUAGE DataKinds #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -Wno-orphans #-} module Cardano.Ledger.Babbage.Rules.Ledgers () where import Cardano.Ledger.Allegra.Rules (AllegraUtxoPredFailure) import Cardano.Ledger.Alonzo.Rules ( AlonzoUtxoPredFailure, AlonzoUtxosPredFailure, AlonzoUtxowPredFailure, ) import Cardano.Ledger.Babbage.Era (BabbageEra) import Cardano.Ledger.Babbage.Rules.Ledger () import Cardano.Ledger.Babbage.Rules.Utxo (BabbageUtxoPredFailure) import Cardano.Ledger.Babbage.Rules.Utxow (BabbageUtxowPredFailure) import Cardano.Ledger.Core import Cardano.Ledger.Shelley.Rules ( ShelleyDelegPredFailure, ShelleyDelegsPredFailure, ShelleyDelplPredFailure, ShelleyLedgerPredFailure, ShelleyLedgersPredFailure (..), ShelleyPoolPredFailure, ShelleyPpupPredFailure, ShelleyUtxoPredFailure, ShelleyUtxowPredFailure, ) type instance EraRuleFailure "LEDGERS" (BabbageEra c) = ShelleyLedgersPredFailure (BabbageEra c) instance InjectRuleFailure "LEDGERS" ShelleyLedgersPredFailure (BabbageEra c) instance InjectRuleFailure "LEDGERS" ShelleyLedgerPredFailure (BabbageEra c) where injectFailure :: ShelleyLedgerPredFailure (BabbageEra c) -> EraRuleFailure "LEDGERS" (BabbageEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure instance InjectRuleFailure "LEDGERS" BabbageUtxowPredFailure (BabbageEra c) where injectFailure :: BabbageUtxowPredFailure (BabbageEra c) -> EraRuleFailure "LEDGERS" (BabbageEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure 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 "LEDGERS" AlonzoUtxowPredFailure (BabbageEra c) where injectFailure :: AlonzoUtxowPredFailure (BabbageEra c) -> EraRuleFailure "LEDGERS" (BabbageEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure 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 "LEDGERS" ShelleyUtxowPredFailure (BabbageEra c) where injectFailure :: ShelleyUtxowPredFailure (BabbageEra c) -> EraRuleFailure "LEDGERS" (BabbageEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure 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 "LEDGERS" BabbageUtxoPredFailure (BabbageEra c) where injectFailure :: BabbageUtxoPredFailure (BabbageEra c) -> EraRuleFailure "LEDGERS" (BabbageEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure 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 "LEDGERS" AlonzoUtxoPredFailure (BabbageEra c) where injectFailure :: AlonzoUtxoPredFailure (BabbageEra c) -> EraRuleFailure "LEDGERS" (BabbageEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure 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 "LEDGERS" AlonzoUtxosPredFailure (BabbageEra c) where injectFailure :: AlonzoUtxosPredFailure (BabbageEra c) -> EraRuleFailure "LEDGERS" (BabbageEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure 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 "LEDGERS" ShelleyPpupPredFailure (BabbageEra c) where injectFailure :: ShelleyPpupPredFailure (BabbageEra c) -> EraRuleFailure "LEDGERS" (BabbageEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure 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 "LEDGERS" ShelleyUtxoPredFailure (BabbageEra c) where injectFailure :: ShelleyUtxoPredFailure (BabbageEra c) -> EraRuleFailure "LEDGERS" (BabbageEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure 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 "LEDGERS" AllegraUtxoPredFailure (BabbageEra c) where injectFailure :: AllegraUtxoPredFailure (BabbageEra c) -> EraRuleFailure "LEDGERS" (BabbageEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure 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 "LEDGERS" ShelleyDelegsPredFailure (BabbageEra c) where injectFailure :: ShelleyDelegsPredFailure (BabbageEra c) -> EraRuleFailure "LEDGERS" (BabbageEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure 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 "LEDGERS" ShelleyDelplPredFailure (BabbageEra c) where injectFailure :: ShelleyDelplPredFailure (BabbageEra c) -> EraRuleFailure "LEDGERS" (BabbageEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure 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 "LEDGERS" ShelleyPoolPredFailure (BabbageEra c) where injectFailure :: ShelleyPoolPredFailure (BabbageEra c) -> EraRuleFailure "LEDGERS" (BabbageEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure 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 "LEDGERS" ShelleyDelegPredFailure (BabbageEra c) where injectFailure :: ShelleyDelegPredFailure (BabbageEra c) -> EraRuleFailure "LEDGERS" (BabbageEra c) injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure 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