Intention "add type signature" isn't working
See original GitHub issueEverything else seems to be fine (code completion, type info, syntax checking). I would appreciate any advice.
ghc-mod version 5.6.0.0 compiled by GHC 7.10.3
The Glorious Glasgow Haskell Compilation System, version 7.10.3
IntelliJ IDEA 2016.2.5 Ultimate
Ubuntu 16.04
PS: I am a total beginner in Haskell and yet doesn’t fully understand many things, like build process. But stack build
and running executable is working, so I assume I have set it up properly.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
How to troubleshoot issues with signatures not added to ...
Users recently added to a distribution group do not get signatures; Unsupported message type; Missing signature template formats (HTML, Plain ...
Read more >Signatures in Microsoft Outlook Are Not Working - YouTube
We demonstrate how to fix your Microsoft Outlook signatures if they are not working. Symptom: When you try to insert a signature in...
Read more >Outlook Signature Not Working - Microsoft Community
In Outlook, my saved signatures are gone and when I try to add by clicking the "Signature" button on the "Message" ribbon, then...
Read more >How to solve problems with email signatures in Office 365?
If you cannot change or add a new email signature, this is most likely caused by a certain value entered into Registry.
Read more >What is a good reason to use a type signature for functions ...
If you make a mistake in defining your function, the compiler might infer a type that isn't what you expected it to be....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, this seems obvious in retrospect, but since ghc-mod is not reporting a warning for the missing type signature, you may need to explicitly provide the
-fwarn-missing-signatures
flag. You can do this via a few different methods -{-# OPTIONS_GHC -fwarn-missing-signatures #-}
pragma at the top of your file.ghc-options: -fwarn-missing-signatures
in your project’s cabal file.-g -fwarn-missing-signatures
to the flags list when configuring ghc-modi in the Haskell Tools settings.Sorry for the delayed resolution. Let me know if this alleviates the issue. If this does solve the problem, I will document it in the Quick Start Guide and close this ticket.
Thanks @mnn! I’ve updated the Quick Start Guide accordingly; see Automatically add type signatures.