Skip to content

Import syntax is a parse error #825

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

Closed
Fresheyeball opened this issue Oct 22, 2020 · 3 comments
Closed

Import syntax is a parse error #825

Fresheyeball opened this issue Oct 22, 2020 · 3 comments

Comments

@Fresheyeball
Copy link

Haskell language server correctly suggest the following change

import Servant.API

to

import Servant.API (type (:<|>)(..), Capture, JSON)

Which compiles fine. But Haskell language server reports it as a parse error.

@jneira
Copy link
Member

jneira commented Oct 23, 2020

@Fresheyeball pehaps the last "haskell language server" should be "ghcide"?

@pepeiborra
Copy link
Collaborator

I think ExplicitNamespaces is needed to parse that import.

HLS/ghcide use the suggestions in GHC error messages to generate code actions, so if GHC is suggesting this import but not suggesting the language extension that's probably a bug in GHC. Please check and consider opening an issue in the GHC bug tracker

@pepeiborra
Copy link
Collaborator

Closing as nothing to do here

@pepeiborra pepeiborra transferred this issue from haskell/ghcide Jan 1, 2021
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

No branches or pull requests

3 participants