To disable just this warning you need the following:
{-# OPTIONS -Wno-unused-matches #-}
To find the right warning your best bet is probably to look at 5.2. Warnings and sanity-checking — Glasgow Haskell Compiler 9.0.1 User's Guide or my short reference (which isn’t exhaustive) at Making the most out of DAML Compiler warnings.
Alternatively, if you just want to undo your -Wall
there is -Wno-all
. If you want to undo -Werror
and go back to warnings instead there is -Wwarn
.