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

Add examples of carrier composition #135

Open
robrix opened this issue Mar 20, 2019 · 3 comments
Open

Add examples of carrier composition #135

robrix opened this issue Mar 20, 2019 · 3 comments
Labels
documentation Communicate to other humans help wanted Extra attention is needed

Comments

@robrix
Copy link
Collaborator

robrix commented Mar 20, 2019

In 0.3, carrier composition is simpler, faster, and more convenient than in earlier versions. We should add at least one example of defining a carrier by composing other carriers together.

This is closely related to but (IMO) distinct from #9, which is about the simpler case of defining a carrier using a single underlying carrier; e.g. FreshC being defined using StateC.

@robrix robrix added this to the 0.3 milestone Mar 20, 2019
@robrix robrix modified the milestones: 0.3, 0.3.0.1 Mar 28, 2019
@robrix
Copy link
Collaborator Author

robrix commented Mar 28, 2019

Bumped to 0.3.0.1; 0.3 is ready to go and this needn’t delay it.

@mitchellwrosen
Copy link
Contributor

I'd be happy to provide an example of this, do you have one in mind?

@robrix
Copy link
Collaborator Author

robrix commented Apr 11, 2019

@mitchellwrosen: Oh, thank you! Nothing off the top of my head; but e.g. I’ve written typechecking effects with a ReaderC for the context + WriterC to collect constraints. I think the example could just show off the mechanical parts of that, tho we should probably also (separately) document why you might abstract underlying effects behind some other effect.

I guess one classic example might be implementing State behaviour using the composition of ReaderC & WriterC.

@robrix robrix removed this from the 0.3.0.1 milestone Sep 2, 2019
@robrix robrix added help wanted Extra attention is needed documentation Communicate to other humans labels Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Communicate to other humans help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants