Skip to content

ReaderWriterStateT type parameter order #1763

Closed
@peterneyens

Description

@peterneyens

I mentioned this in #1706, but that PR was merged before we decided on what to do.

Quoting myself :

I also find the ordering of the type parameters a bit confusing. Now it is E (Reader) -> S (State) -> L (Writer), while the name ReaderWriterStateT suggests that Writer comes before State. The reason is probably the Bifunctor instance for the Writer part.

I would drop the Bifunctor instance and switch the order of S and L so it aligns with the name. We could also leave as it is or change to ReaderStateWriterT 😃. If we want to change something, it should probably be done before 1.0.0-MF. Opinions?

I won't be able to work on this before the 16th, so feel free to pick this up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions