Skip to content

ReaderT instances for Semialign and Align - #196

Open
turion wants to merge 1 commit into
haskellari:masterfrom
turion:dev_reader_t
Open

turion wants to merge 1 commit into
haskellari:masterfrom
turion:dev_reader_t

Conversation

@turion

@turion turion commented May 4, 2024

Copy link
Copy Markdown

Since ReaderT r m a is isomorphic to Compose m ((->) r)) a, it has a straightforward Align instance. This PR adds it. If you want, I can add other instances for transformers that are also compositions (ExceptT, MaybeT, possibly others?).

@turion

turion commented May 4, 2024

Copy link
Copy Markdown
Author

Solves part of #135.

In #135 (comment), you say:

"should" should be witnessed.

Is it sufficient to add one monomorphic test case for ReaderT?

@Zemyla

Zemyla commented Sep 7, 2026

Copy link
Copy Markdown

You should also add Kleisli instances, since that's ReaderT with a different order of operations.

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

Successfully merging this pull request may close these issues.

2 participants