I’m encountering some wrong errors in Haskell while coding in VS Code, such as "not in scope," "not imported-exported" or "package not found." To fix this, I have to quit VS Code and reopen it. These errors don’t affect the functionality, as the project builds, runs, and passes tests correctly, but my code ends up with lots of false errors - red underlines. Do you have any suggestions?
I tried uninstalling and reinstalling almost everything possible.
I've had the same issue multiple times and clearing vscodes cache fixed it for me personally. what is your version of haskell, I'm sure your haskell version is updated to the latest.
clearing cache worked for me