Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
-
newtype
LedgerEraInfo
blk =
LedgerEraInfo
{
- getLedgerEraInfo :: SingleEraInfo blk
-
data
SingleEraInfo
blk =
SingleEraInfo
{
- singleEraName :: ! Text
Era info
newtype LedgerEraInfo blk Source #
Additional newtype wrapper around
SingleEraInfo
This is primarily useful for use in error messages: it marks which era info came from the ledger, and which came from a tx block header/etc.
Instances
Eq ( LedgerEraInfo blk) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.Info (==) :: LedgerEraInfo blk -> LedgerEraInfo blk -> Bool Source # (/=) :: LedgerEraInfo blk -> LedgerEraInfo blk -> Bool Source # |
|
Show ( LedgerEraInfo blk) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.Info |
|
NoThunks ( LedgerEraInfo blk) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.Info |
|
Serialise ( LedgerEraInfo blk) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.Info encode :: LedgerEraInfo blk -> Encoding Source # decode :: Decoder s ( LedgerEraInfo blk) Source # encodeList :: [ LedgerEraInfo blk] -> Encoding Source # decodeList :: Decoder s [ LedgerEraInfo blk] Source # |
data SingleEraInfo blk Source #
Information about an era (mostly for type errors)