-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into lc/flake-update
- Loading branch information
Showing
8 changed files
with
57 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
hydra-cardano-api/src/Hydra/Cardano/Api/AllegraEraOnwards.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module Hydra.Cardano.Api.AllegraEraOnwards where | ||
|
||
import Cardano.Api (AllegraEra, AllegraEraOnwards (..), AlonzoEra, BabbageEra, ConwayEra, MaryEra) | ||
|
||
-- | Type class to produce 'AllegraEraOnwards' witness values while staying | ||
-- parameterized by era. | ||
class IsAllegraEraOnwards era where | ||
allegraEraOnwards :: AllegraEraOnwards era | ||
|
||
instance IsAllegraEraOnwards AllegraEra where | ||
allegraEraOnwards = AllegraEraOnwardsAllegra | ||
|
||
instance IsAllegraEraOnwards MaryEra where | ||
allegraEraOnwards = AllegraEraOnwardsMary | ||
|
||
instance IsAllegraEraOnwards AlonzoEra where | ||
allegraEraOnwards = AllegraEraOnwardsAlonzo | ||
|
||
instance IsAllegraEraOnwards BabbageEra where | ||
allegraEraOnwards = AllegraEraOnwardsBabbage | ||
|
||
instance IsAllegraEraOnwards ConwayEra where | ||
allegraEraOnwards = AllegraEraOnwardsConway |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters