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

Update free monad docs #832

Merged
merged 1 commit into from
Feb 1, 2016
Merged

Conversation

ceedubs
Copy link
Contributor

@ceedubs ceedubs commented Jan 30, 2016

This resolves #804.

I also updated the "pure" compiler to use State. It previously had
said that a pure compiler couldn't be written and used with foldMap,
but that's not really true if you use something like State. I think
this is probably a cleaner and more useful solution.

@mandubian @raulraja would you be available to review?

This resolves typelevel#804.

I also updated the "pure" compiler to use `State`. It previously had
said that a pure compiler couldn't be written and used with `foldMap`,
but that's not really true if you use something like `State`. I think
this is probably a cleaner and more useful solution.
@codecov-io
Copy link

Current coverage is 89.26%

Merging #832 into master will decrease coverage by -0.04% as of 69c4737

@@            master    #832   diff @@
======================================
  Files          168     168       
  Stmts         2319    2319       
  Branches        75      75       
  Methods          0       0       
======================================
- Hit           2071    2070     -1
  Partial          0       0       
- Missed         248     249     +1

Review entire Coverage Diff as of 69c4737

Powered by Codecov. Updated on successful CI builds.

4. Build a program out of key-value DSL operations.
5. Build a compiler for programs of DSL operations.
6. Execute our compiled program.
2. Create smart constructors for `KVStore[_]` using `liftF`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An alternative to liftF is to use Free.inject when targeting cats.data.Coproduct as a composition mechanism maybe it should be mentioned here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's mentioned below. Perhaps we should consider adding some kind of TOC at the beginning of each tutorial to show at a glance the different sections and topics being described.

@raulraja
Copy link
Contributor

@ceedubs LGTM!. My comments are just suggestion for future consideration in case the tutorials become too long.

@non
Copy link
Contributor

non commented Feb 1, 2016

👍

@mandubian
Copy link
Contributor

yes that was required! thanks for the effort ;)
👍

@ceedubs
Copy link
Contributor Author

ceedubs commented Feb 1, 2016

Thanks for the quick feedback everyone. @raulraja I agree that tables of contents might be helpful in docs. I'll create a separate issue to track that.

@ceedubs ceedubs mentioned this pull request Feb 1, 2016
ceedubs added a commit that referenced this pull request Feb 1, 2016
@ceedubs ceedubs merged commit 5df87d3 into typelevel:master Feb 1, 2016
@ceedubs ceedubs deleted the update-freemonad-docs branch February 1, 2016 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update free monad tut for newer Free structure
6 participants