-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
Current coverage is
|
} | ||
|
||
val validator = prog.foldMap[String => ?](compiler) | ||
validator("1234") |
There was a problem hiding this comment.
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?
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 |
There was a problem hiding this comment.
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/ ?
Great work, @adelbertc! |
I think this doc is great and really walks you through this - and the example is great because it is practical! |
👍 |
No description provided.