Skip to content

Defunctionalize EpochInfo #469

@uhbif19

Description

@uhbif19

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions