Skip to content

Commit

Permalink
Make IsShelleyBasedEra extend IsCardanoEra
Browse files Browse the repository at this point in the history
And export HasScriptFeatures. Both of these will be useful in the CLI
implementation.
  • Loading branch information
dcoutts committed Nov 24, 2020
1 parent 41c87b0 commit d0e1015
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cardano-api/src/Cardano/Api/Eras.hs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ deriving instance Show (ShelleyBasedEra era)
-- of Shelley-based eras, but also non-uniform by making case distinctions on
-- the 'ShelleyBasedEra' constructors.
--
class HasTypeProxy era => IsShelleyBasedEra era where
class IsCardanoEra era => IsShelleyBasedEra era where
shelleyBasedEra :: ShelleyBasedEra era

instance IsShelleyBasedEra ShelleyEra where
Expand Down
1 change: 1 addition & 0 deletions cardano-api/src/Cardano/Api/Script.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module Cardano.Api.Script (
, ScriptFeatureInEra(..)
, SignatureFeature
, TimeLocksFeature
, HasScriptFeatures

-- * Deprecated aliases
, MultiSigScript
Expand Down
1 change: 1 addition & 0 deletions cardano-api/src/Cardano/Api/Typed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ module Cardano.Api.Typed (
ScriptFeatureInEra(..),
SignatureFeature,
TimeLocksFeature,
HasScriptFeatures,
-- *** Deprecated aliases
MultiSigScript,
makeMultiSigScript,
Expand Down

0 comments on commit d0e1015

Please sign in to comment.