Closed dandoh closed 5 years ago
So you want support even when GHC does not give suggestions? So without -Wall
No, just the normal one like GHC with -Wall
, I think mostly people need it for top-level functions.
The things is that there are lots of bad old codes without annotations for top-level functions, I have to Haskell.showType
to find out their type and annotate them myself. So it would be useful to have the intention for this.
Hmm, when -Wall
is enabled you should see the intentions to add type signatures to top-level functions.
You mean if I do this, I'll see the intentions if the signature is missing?: I tried but doesn't seem to work.
No, in your project's cabal file.
Oh you're right. I added this to package.yaml and it works
library:
source-dirs: src
ghc-options:
- -Wmissing-signatures
But do you think it should be the default behavior?
Repeat #224. The latest intellj-elm has this feature, and I think it would be nice for intellj-haskell to have this too.