I’d like to keep both warnings in a project, and some code source raising false warnings. So I’d like to disable all warnings for individual files.
The example for which I’d appreciate a solution is here: Exception where clause produces warning "Defined but not used: ‘this’" · Issue #11004 · digital-asset/daml · GitHub
I already tried these:
{-# OPTIONS_GHC -fno-warn-unused-top-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -Wno-unused-top-binds #-}
{-# OPTIONS_GHC -Wno-unused-binds #-}
{-# OPTIONS_GHC -Wno-error #-}
{-# OPTIONS -fno-warn-unused-top-binds #-}
{-# OPTIONS -fno-warn-unused-binds #-}
{-# OPTIONS -Wno-unused-top-binds #-}
{-# OPTIONS -Wno-unused-binds #-}
{-# OPTIONS -Wno-error #-}