One way of suppressing 'Defined but not used' warning (-Wunused-matches)

Haskell compiler will complain when it detects unused identifiers, like so:

1
2
3
4
5
file.hs:272:51: warning: [-Wunused-matches]
Defined but not used: ‘myVar’
|
272 | doStuff responses expectedFl ‘myVar’ = do
|

I found an quick and easy way of suppressing such warning by prefixing identifiers with underscore, like _myVar

Of course, ideally we shoul address such warnings, or rely on compilation flags, so use it wisely.