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

More tut for FreeApplicative #720

Merged
merged 3 commits into from
Dec 8, 2015

Conversation

adelbertc
Copy link
Contributor

No description provided.

@codecov-io
Copy link

Current coverage is 85.58%

Merging #720 into master will increase coverage by +0.07% as of f0e4c03

@@            master    #720   diff @@
======================================
  Files          162     162       
  Stmts         2244    2247     +3
  Branches        74      74       
  Methods          0       0       
======================================
+ Hit           1919    1923     +4
  Partial          0       0       
+ Missed         325     324     -1

Review entire Coverage Diff as of f0e4c03

Powered by Codecov. Updated on successful CI builds.

}

val validator = prog.foldMap[String => ?](compiler)
validator("1234")
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor formatting suggestion: maybe put all but the last two lines of this into a tut:silent block to avoid noise?

@ceedubs
Copy link
Contributor

ceedubs commented Dec 7, 2015

I left a couple minor comments, but this is great! Thanks @adelbertc.


Applicative functors are a generalization of monads allowing expressing effectful computations in a pure functional way.
`FreeApplicative`s are similar to `Free` (monads) in that they provide a nice way to represent
computations as data and are useful for building embedded DSLs (EDSLs). However, they differ in
Copy link
Member

Choose a reason for hiding this comment

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

s/differ in from/differ from/ ?

@fthomas
Copy link
Member

fthomas commented Dec 7, 2015

Great work, @adelbertc!

@mikejcurry
Copy link
Contributor

I think this doc is great and really walks you through this - and the example is great because it is practical!

@ceedubs
Copy link
Contributor

ceedubs commented Dec 8, 2015

👍

ceedubs added a commit that referenced this pull request Dec 8, 2015
@ceedubs ceedubs merged commit 48286f2 into typelevel:master Dec 8, 2015
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.

6 participants