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

Document possible CyclesInDeclaration error when using defaults #139

Open
jmatsushita opened this issue Jul 27, 2021 · 1 comment
Open
Labels
type: documentation Improvements or additions to documentation.

Comments

@jmatsushita
Copy link

I just bumped into the problem mentioned here https://stackoverflow.com/a/38490637/3237351 and the solution was also indeed to go from foldl = foldlDefault to fold f = foldlDefault f. It feels like this could be better documented in the Foldable instance. Maybe by simply giving a trivial example like the one in SO.

Possibly adding this case to the error documentation at https://github.com/purescript/documentation/blob/master/errors/CycleInDeclaration.md would also be a good idea. I'll submit an issue there too.

@JordanMartinez
Copy link
Contributor

I think this is worth adding as a clarification to the docs as it can easily trip you up if you're not aware of it.

@JordanMartinez JordanMartinez added the type: documentation Improvements or additions to documentation. label Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation Improvements or additions to documentation.
Projects
None yet
Development

No branches or pull requests

2 participants