-
Notifications
You must be signed in to change notification settings - Fork 192
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
Ch13 - clarify exercise to "simplify the result of 'quickCheckPure'" #306
Comments
All good points. I went into skim mode by the end of Ch13, so didn't get around to attempting that exercise, but I think a Doesn't look like Also, it would be great if we could setup some exercise framework for this chapter. I was kinda stumped on what to do with this, since it's inverted where we're finally asking the readers to write the tests. |
Also interesting that |
The |
Chapter 13 has the following exercise, which was added in commit 46d5d2b:
I am having trouble understanding this exercise. The first sentence makes it sound like the exercise is to write a function of type
List Result -> Boolean
using theall
function.However, it is unclear how to make this work with the second sentence, which asks that we try to "preserve the first error in case of failure" because I don't see how I can encode the first error in a
Boolean
.Is the exercise asking the reader to write two functions, one with type
List Result -> Boolean
and another with typeList Result -> First String
?Also, I can't seem to find a
monoids
package that includes aFirst
newtype. (There seems to have been amonoid
package that is now deprecated due to being merged intoprelude
.) Searching pursuit for "First," it seems like theFirst
newtype fromData.Maybe.First
is the monoid most similar to the one called for. If that's the case, then I can update the text to match.The text was updated successfully, but these errors were encountered: