IntersectMBO / IntersectMBO/cardano-base

Defunctionalize `EpochInfo`

Open
#469 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
105
Forks
54
Avg merge
9d 2h
Merged PRs (30d)
4

Description

Currently `EpochInfo` is datatype consisting of bunch of closures, parametrized by monad.
Such datatype cannot be prettyprinted, serialized or otherwise inspected both in Haskell or by developer.

Thus some libraries tend to make custom datatypes storing same information.

Yet seems like it is bounded with monad `Either Text` everythere. And seems like there is only two functions to modify it. Thus it seems like it could be just regular (possibly modulo Era type families) datatype, something like list of epochs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.