-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unused warnings #2
Comments
|
I do not have a good answer for that question. Due to the strict evaluation, everything is evaluated at some point, which makes it hard to refer to things as unused. Nevertheless, you are right that these warnings point the programmer to common errors - at least most of the time. In this case, I would argue that |
As a reminder Someone has noticed a related issue in GHC: https://gitlab.haskell.org/ghc/ghc/-/issues/19003 |
An expression like
count = [let { _ = print [i]; i = getLine } in ()]
yields a warning thati
is unused (which is not the case apparently).The text was updated successfully, but these errors were encountered: