{-# LANGUAGE DataKinds #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -Wno-orphans #-} module Cardano.Ledger.Alonzo.Rules.Delpl () where import Cardano.Ledger.Alonzo.Era (AlonzoEra) import Cardano.Ledger.Alonzo.Rules.Deleg () import Cardano.Ledger.Alonzo.Rules.Pool () import Cardano.Ledger.Core import Cardano.Ledger.Shelley.Rules ( ShelleyDelegPredFailure, ShelleyDelplPredFailure (..), ShelleyPoolPredFailure, ) type instance EraRuleFailure "DELPL" AlonzoEra = ShelleyDelplPredFailure AlonzoEra instance InjectRuleFailure "DELPL" ShelleyDelplPredFailure AlonzoEra instance InjectRuleFailure "DELPL" ShelleyPoolPredFailure AlonzoEra where injectFailure :: ShelleyPoolPredFailure AlonzoEra -> EraRuleFailure "DELPL" AlonzoEra injectFailure = forall era. PredicateFailure (EraRule "POOL" era) -> ShelleyDelplPredFailure era PoolFailure instance InjectRuleFailure "DELPL" ShelleyDelegPredFailure AlonzoEra where injectFailure :: ShelleyDelegPredFailure AlonzoEra -> EraRuleFailure "DELPL" AlonzoEra injectFailure = forall era. PredicateFailure (EraRule "DELEG" era) -> ShelleyDelplPredFailure era DelegFailure