Supress unused-imports warning in the generated module (#19)
commitb80e4ffb8c66b91c31c091ec6d2f8637caa39bbe
authorYuras <shumovichy@gmail.com>
dateTue 11 Feb 2020, 17:35 (7 years ago)
parentdc3339c
src/Main.hs+2−1
@@ -391,7 +391,8 @@ genHeader opts = do
391391 writeCode [""]
392392
393393 writeCode
394− [ "module " <> oModule opts <> " where"
394+ [ "{-# OPTIONS_GHC -Wno-unused-imports #-}"
395+ , "module " <> oModule opts <> " where"
395396 , ""
396397 , "import Control.DeepSeq"
397398 , "import Data.Scientific"