| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Chain.Epoch.File
Synopsis
- mainnetEpochSlots :: EpochSlots
- parseEpochFileWithBoundary :: EpochSlots -> FilePath -> Stream (Of (ABlockOrBoundary ByteString)) (ExceptT ParseError ResIO) ()
- parseEpochFilesWithBoundary :: EpochSlots -> [FilePath] -> Stream (Of (ABlockOrBoundary ByteString)) (ExceptT ParseError ResIO) ()
- data ParseError
Documentation
mainnetEpochSlots :: EpochSlots Source #
Slots per epoch used in mainnet
This number has been fixed throughout the Byron era.
parseEpochFileWithBoundary :: EpochSlots -> FilePath -> Stream (Of (ABlockOrBoundary ByteString)) (ExceptT ParseError ResIO) () Source #
parseEpochFilesWithBoundary :: EpochSlots -> [FilePath] -> Stream (Of (ABlockOrBoundary ByteString)) (ExceptT ParseError ResIO) () Source #
data ParseError Source #
Constructors
| ParseErrorDecoder !DecoderError | The CBOR is invalid |
| ParseErrorBinary !FilePath !ByteOffset !Text | |
| ParseErrorMissingHeader !FilePath |
Instances
| Eq ParseError Source # | |
Defined in Cardano.Chain.Epoch.File | |
| Show ParseError Source # | |
Defined in Cardano.Chain.Epoch.File Methods showsPrec :: Int -> ParseError -> ShowS # show :: ParseError -> String # showList :: [ParseError] -> ShowS # | |