| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.HardFork.Combinator.Info
Contents
Synopsis
- data SingleEraInfo blk = SingleEraInfo {
- singleEraName :: !Text
- newtype LedgerEraInfo blk = LedgerEraInfo {
- getLedgerEraInfo :: SingleEraInfo blk
Era info
data SingleEraInfo blk Source #
Information about an era (mostly for type errors)
Constructors
| SingleEraInfo | |
Fields
| |
Instances
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 txblockheader/etc.
Constructors
| LedgerEraInfo | |
Fields
| |
Instances
| Eq (LedgerEraInfo blk) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.Info Methods (==) :: LedgerEraInfo blk -> LedgerEraInfo blk -> Bool # (/=) :: LedgerEraInfo blk -> LedgerEraInfo blk -> Bool # | |
| Show (LedgerEraInfo blk) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.Info Methods showsPrec :: Int -> LedgerEraInfo blk -> ShowS # show :: LedgerEraInfo blk -> String # showList :: [LedgerEraInfo blk] -> ShowS # | |
| NoThunks (LedgerEraInfo blk) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.Info | |
| Serialise (LedgerEraInfo blk) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.Info Methods encode :: LedgerEraInfo blk -> Encoding Source # decode :: Decoder s (LedgerEraInfo blk) Source # encodeList :: [LedgerEraInfo blk] -> Encoding Source # decodeList :: Decoder s [LedgerEraInfo blk] Source # | |