Skip to content

Importing type (synonym/family??) operators doesn't work properly #1597

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
googleson78 opened this issue Mar 19, 2021 · 1 comment · Fixed by #1644
Closed

Importing type (synonym/family??) operators doesn't work properly #1597

googleson78 opened this issue Mar 19, 2021 · 1 comment · Fixed by #1644
Labels
component: ghcide type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. type: enhancement New feature or request

Comments

@googleson78
Copy link
Contributor

version:

tauren :: ~ » haskell-language-server-wrapper --version
haskell-language-server version: 1.0.0.0 (GHC: 8.10.4) (PATH: /home/googleson78/.ghcup/bin/haskell-language-server-wrapper-1.0.0) (GIT hash: 4cd1cf934638881e52b3eba9f70157a4b799c0e9)

When trying to import a type synonym operator (possibly also for families), you need to use (e.g.) import Fcf (type (@@)). hls however only generates import Fcf ((@@))

@berberman berberman added component: ghcide type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. labels Mar 19, 2021
@berberman
Copy link
Collaborator

IIRC, importing pattern synonyms doesn't work as well :(

@Ailrun Ailrun added the type: enhancement New feature or request label Mar 19, 2021
@mergify mergify bot closed this as completed in #1644 Apr 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ghcide type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. type: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants