Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97eca22
commit 58aac35
Showing
3 changed files
with
25 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{-# LANGUAGE GADTs #-} | ||
|
||
module Cardano.Api.Improved where | ||
|
||
import Cardano.Api | ||
|
||
data ImprovedBlockInMode mode where | ||
ImprovedBlockInMode :: IsCardanoEra era => Block era -> EraInMode era mode -> ImprovedBlockInMode mode | ||
|
||
improveBlockInMode :: BlockInMode CardanoMode -> ImprovedBlockInMode CardanoMode | ||
improveBlockInMode (BlockInMode bl eim@ByronEraInCardanoMode) = ImprovedBlockInMode bl eim | ||
improveBlockInMode (BlockInMode bl eim@ShelleyEraInCardanoMode) = ImprovedBlockInMode bl eim | ||
improveBlockInMode (BlockInMode bl eim@AllegraEraInCardanoMode) = ImprovedBlockInMode bl eim | ||
improveBlockInMode (BlockInMode bl eim@MaryEraInCardanoMode) = ImprovedBlockInMode bl eim | ||
improveBlockInMode (BlockInMode bl eim@AlonzoEraInCardanoMode) = ImprovedBlockInMode bl eim |
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