Skip to content

Commit

Permalink
Rename featureInShelleyBasedEra to shelleyBasedEraFor
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Sep 16, 2023
1 parent 3df8ba1 commit cba294a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cardano-api/internal/Cardano/Api/Eras.hs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Cardano.Api.Eras
, eonMaybe
, maybeEon

, featureInShelleyBasedEra
, shelleyBasedEraFor
, inShelleyBasedEraFeature
, inShelleyBasedEraFeatureMaybe
, maybeFeatureInShelleyBasedEra
Expand Down
8 changes: 4 additions & 4 deletions cardano-api/internal/Cardano/Api/Eras/Core.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module Cardano.Api.Eras.Core
, eonFor
, eonMaybe
, maybeEon
, featureInShelleyBasedEra
, shelleyBasedEraFor
, inShelleyBasedEraFeature
, inShelleyBasedEraFeatureMaybe
, maybeFeatureInShelleyBasedEra
Expand Down Expand Up @@ -168,13 +168,13 @@ maybeEon =
forEon Nothing Just

-- | Determine the value to use for a eon in a given 'ShelleyBasedEra'.
featureInShelleyBasedEra :: ()
shelleyBasedEraFor :: ()
=> IsEon eon
=> a
-> (eon era -> a)
-> ShelleyBasedEra era
-> a
featureInShelleyBasedEra no yes =
shelleyBasedEraFor no yes =
forEon no yes . shelleyBasedToCardanoEra

maybeFeatureInShelleyBasedEra :: ()
Expand All @@ -191,7 +191,7 @@ inShelleyBasedEraFeature :: ()
-> (eon era -> a)
-> a
inShelleyBasedEraFeature era no yes =
featureInShelleyBasedEra no yes era
shelleyBasedEraFor no yes era

inShelleyBasedEraFeatureMaybe :: ()
=> IsEon eon
Expand Down
2 changes: 1 addition & 1 deletion cardano-api/src/Cardano/Api.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module Cardano.Api (
eonMaybe,
maybeEon,

featureInShelleyBasedEra,
shelleyBasedEraFor,
inShelleyBasedEraFeature,
inShelleyBasedEraFeatureMaybe,
maybeFeatureInShelleyBasedEra,
Expand Down

0 comments on commit cba294a

Please sign in to comment.