Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intention "add type signature" isn't working

See original GitHub issue

Everything else seems to be fine (code completion, type info, syntax checking). I would appreciate any advice.

ghc-mod version 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:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

carymrobbinscommented, Nov 28, 2016

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 -

  1. Using a {-# OPTIONS_GHC -fwarn-missing-signatures #-} pragma at the top of your file.
  2. Including ghc-options: -fwarn-missing-signatures in your project’s cabal file.
  3. Adding -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.

carymrobbinscommented, Nov 30, 2016

Thanks @mnn! I’ve updated the Quick Start Guide accordingly; see Automatically add type signatures.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found