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

"Add import" provider cannot handle operators contaning . (dot) #80

Closed
EduardSergeev opened this issue Jun 2, 2024 · 0 comments · Fixed by #82
Closed

"Add import" provider cannot handle operators contaning . (dot) #80

EduardSergeev opened this issue Jun 2, 2024 · 0 comments · Fixed by #82

Comments

@EduardSergeev
Copy link
Owner

No quick fix is generated for operators containing . (e.g. (.=)) which are not imported even though the correct error message is generated by GHC.
E.g. with this error message

Variable not in scope:
  (.=)
    :: Data.Aeson.Key.Key -> v -> Data.Aeson.Encoding.Internal.Series
Suggested fixes:
  • Perhaps use one of these:
      ‘.’ (imported from Prelude), ‘/=’ (imported from Prelude),
      ‘<=’ (imported from Prelude)
  • Perhaps you want to add ‘.=’ to the import list in the import of
    ‘Data.Aeson’ (/home/edka/work/Crypto/pilot/src/JSON.hs:11:1-105).

no quick fix action is emitted:
image

@EduardSergeev EduardSergeev changed the title "Add import" provider cannot handle operators contaning . "Add import" provider cannot handle operators contaning . (dot) Jun 2, 2024
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

Successfully merging a pull request may close this issue.

1 participant