-
Notifications
You must be signed in to change notification settings - Fork 191
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
Ch2 Exercises introduces Pursuit with an empty search #259
Comments
Thanks for catching and reporting this issue. Looks like Unfortunately, Pursuit can become out of sync with what's actually available in latest package set (a bit too bleeding edge in this case). That should improve once we get the new registry online. Until then, you can also check this pursuit clone which is pinned to the latest package set. Anyway, let's go with your suggestion of updating the example. The replacement for I can't think of anything else that's chapter-2-appropriate to search for on pursuit. Let me know if you have any ideas. We can alternatively defer the pursuit exercise until a later chapter. |
I'm not sure how the Global package was brought in, but it's nice to have a function to look up that's already a dependency, so the user doesn't have to learn about adding them. Maybe Global is special somehow in that regard? Grepping global doesn't really bring anything up for me in the project—it's not important except that it would be nice to replace the exercise with something that had that same property. It might be silly, but we could do something like |
I believe
What about this for an exercise?
Feel free to make a PR for this change. You're welcome to use the above snippet, or whatever else you think would be a good substitute. I'll help out with whatever additional CI fixups might be necessary. |
|
The current simple solution to implementing the last exercise,
...generates the error: |
@gdennie Thanks for the feedback. Note that Here's what I see as my first pursuit result for rem :: Int -> Int -> Int
rem 2 3 == 2 For context, here's the exercise:
|
Thanks. I did realized my mistake in bed reflecting. :) Incidentally, the exercises should be using |
I think that's more of a matter of preference. For most folks starting out, global install is the most convenient. And if you're installing via |
In the exercises for chapter 2, the user is directed to "search Pursuit to find the module that contains the readFloat function and import that module." The containing module,
Global
, is deprecated, and Pursuit no longer indexes deprecated modules. The easiest fix would be to change that example to something easy to search for in a package that's not deprecated.The text was updated successfully, but these errors were encountered: