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