-
-
Notifications
You must be signed in to change notification settings - Fork 389
Export action on type family exports with constructors (Tyfam(..)) #2635
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
haskell-language-server/ghcide/src/Development/IDE/Plugin/CodeAction.hs Lines 602 to 617 in f62ec3e
Looks like type families default to having |
That being said I tested quickly myself and I was able to export a TypeFamily with |
It triggers a warning, I believe this one - https://downloads.haskell.org/ghc/latest/docs/html/users_guide/using-warnings.html#ghc-flag--Wdodgy-exports |
Your environment
HLS version:
1.5.1
Which OS do you use:
Debian
Which LSP client (editor/plugin) do you use:
LanguageClient-neovim
Steps to reproduce
Add a file with a type family, with an empty export list. Use the "export definition" action on the type family. HLS generates an export with exported constructors, even though type families don't have constructors.
Expected behaviour
An export without constructors.
Actual behaviour
An export with constructors, which don't exist, causing an additional warning.
The text was updated successfully, but these errors were encountered: