Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defunctionalize EpochInfo #469

Open
uhbif19 opened this issue Mar 24, 2024 · 0 comments
Open

Defunctionalize EpochInfo #469

uhbif19 opened this issue Mar 24, 2024 · 0 comments

Comments

@uhbif19
Copy link

uhbif19 commented Mar 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant