Feature request: prepend {-# OPTIONS_GHC -w #-}
to extracted Haskell files
#18962
Labels
{-# OPTIONS_GHC -w #-}
to extracted Haskell files
#18962
Is your feature request related to a problem?
When I try compiling an extracted Haskell file with
-Weverything
, GHC complains about many things against the file.Proposed solution
Prepend
{-# OPTIONS_GHC -w #-}
to disable all warnings when extracting Haskell files.Alternative solutions
Fix every warning and error after the extraction. This is very troublesome.
Additional context
Although the use of
-Weverything
is very extreme, I believe disabling all warnings and errors is reasonable. One example is that Cabal, an official Haskell build tool, generatesPaths_*.hs
with the pragma.The text was updated successfully, but these errors were encountered: