-
-
Notifications
You must be signed in to change notification settings - Fork 389
Codelens: Not documented dependency on Prelude (NoImplicitPrelude EXT ON, causing it to output nothing) #1307
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
Comments
Thank you for the report. Yes, it looks like we need to update the document, and if possible, to print some messages saying that we uses those types/functions. |
I wonder if we could encapsulate helper functions used in Eval Plugin as another module and load it to avoid such complication with Just curious: why you used |
I happened to define many functions with the same name of these in Prelude, so I thought it might be better to turn on the |
I would try to fix the issue exploring that path and only document the need of those imports until we fix it |
I got it. I'm afraid that such usage is not intended one of As a side note: not released yet, but the master branch of HLS contains an import disambiguation functionality #1264; I hope this will help you in the near future, or you can build the master on your own 😃. |
Mmm, not sure about that, it is somewhat a corner case but imo it is a legitimate alternative if you want learn haskell reimplementing some of the prelude functions from absolute zero, only with basic language elements (to let clear what comes from one side or another) |
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:Which lsp-client do you use: VS Haskell Extension
Describe your project (alternative: link to the project): https://github.com/pe200012/TAPL-Practice
Contents of
hie.yaml
:Steps to reproduce
Expected behaviour
A plain "1" should appear under the evaluation statement when clicking
Evaluate...
Actual behaviour
Nothing happens, even without an error message!
What I found
I found that you'd need these types imported from Prelude to make codelens available:
It's frustrating that there isn't even a single word talking about the dependency on it. It took about several hours for me to figure out the cause.
I wonder if you could add this information to the tutorial, which would help a lot when others encounter the same issue like me. Thanks in advance!
The text was updated successfully, but these errors were encountered: