rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 96 forks source link

"Add <someDataConstructor> to import list" doesn't work correctly #685

Open ZosoDerGoldene opened 2 years ago

ZosoDerGoldene commented 2 years ago

When I reference a data constructor from another module, and that data constructor is not in the import list, there is an option to have it added to the import list; unfortunately, it's treated as a type constructor and added to the import list as-is, instead of adding it to its type constructor's list of data constructors: (... typeC, dataC, ...) needs to become (...typeC(dataC)...)