I often repeat typecheck my programs in the terminal, changing them in my selection editor to get real-time feedback. Usually I run something similar to: watch -d -n 1 "ghc -fno-code NoIncompletePM.hs" .
Unfortunately, the no-code flag that I use to avoid compiling the code again and again doesnβt seem to be compatible with warn-incomplete-patterns anyway. For instance. with this program:
{-
I never get a warning that argh missing a case for False . You can get all of these warnings by removing the no-code flag and adding force-recomp one (so that the warning displays every time, and not just the first time it is compiled), but I definitely want to avoid compiling this code ...
I could not find anything in the manual describing them as incompatible, so I assume that this is either unexpected behavior, or I am doing something wrong. Any clues?
source share