Skip to content

Instances for ReaderT and MaybeT? #135

@Zemyla

Description

@Zemyla

Because ReaderT e is pretty much Compose ((->) e), there should be derived Semialign, Zip, Repeat, and Unzip instances for it. Also, even though Compose ((->) e) doesn't have an Align instance, nil = ReaderT (const nil) should be law-abiding.

Additionally, MaybeT m is isomorphic to Compose m Maybe, so it also would get Semialign, Align, Zip, Repeat, and Unzip instances. There might also be a possible law-abiding Unalign instance, but I'm not sure right this moment.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions