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

The 'Bin' stretch exercise in 'Induction' requires re-defining code from previous exercise #872

Open
michaelpj opened this issue May 29, 2023 · 3 comments

Comments

@michaelpj
Copy link

For a reader who is doing the exercises inline, you have defined inc/to/from in the 'Bin' exercise in 'Naturals'. There is another exercise in 'Induction' that uses 'Bin', but at the moment you have to redefine the type and functions before doing the exercise.

A solution would be to import the 'Naturals' module, but you can't in fact do this as there are conflicting bindings.

@wadler
Copy link
Member

wadler commented May 29, 2023

Just so. The present situation is annoying, but I don't know of a better approach. Short of someone suggesting one, I propose we should close this issue.

@michaelpj
Copy link
Author

Maybe it could just have a note to make this obvious.

@wadler
Copy link
Member

wadler commented May 30, 2023

OK. Can you draft a pull request with a suitable note?

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

No branches or pull requests

2 participants