Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit a9f9422

Browse files
committed
Revert "Use per-file pragma"
This reverts commit 61192ea.
1 parent 61192ea commit a9f9422

File tree

14 files changed

+10
-23
lines changed

14 files changed

+10
-23
lines changed

app/MainHie.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
21
{-# LANGUAGE OverloadedStrings #-}
32
{-# LANGUAGE RankNTypes #-}
43
module Main where

haskell-ide-engine.cabal

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build-type: Simple
1414
cabal-version: >=2.0
1515

1616
flag pedantic
17-
Description: Enable -Werror
17+
Description: Enable -Werror -Wwarn=unused-imports
1818
Default: False
1919

2020
library
@@ -103,7 +103,7 @@ library
103103

104104
ghc-options: -Wall -Wredundant-constraints
105105
if flag(pedantic)
106-
ghc-options: -Werror
106+
ghc-options: -Werror -Wwarn=unused-imports
107107
default-language: Haskell2010
108108

109109
executable hie
@@ -122,7 +122,7 @@ executable hie
122122
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Wredundant-constraints
123123
-with-rtsopts=-T
124124
if flag(pedantic)
125-
ghc-options: -Werror
125+
ghc-options: -Werror -Wwarn=unused-imports
126126
default-language: Haskell2010
127127

128128

@@ -143,7 +143,7 @@ executable hie-wrapper
143143
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Wredundant-constraints
144144
-with-rtsopts=-T
145145
if flag(pedantic)
146-
ghc-options: -Werror
146+
ghc-options: -Werror -Wwarn=unused-imports
147147
default-language: Haskell2010
148148

149149
library hie-test-utils
@@ -169,7 +169,7 @@ library hie-test-utils
169169
, yaml
170170
ghc-options: -Wall -Wredundant-constraints
171171
if flag(pedantic)
172-
ghc-options: -Werror
172+
ghc-options: -Werror -Wwarn=unused-imports
173173
default-language: Haskell2010
174174

175175
test-suite unit-test
@@ -213,7 +213,7 @@ test-suite unit-test
213213

214214
ghc-options: -Wall -Wredundant-constraints
215215
if flag(pedantic)
216-
ghc-options: -Werror
216+
ghc-options: -Werror -Wwarn=unused-imports
217217
default-language: Haskell2010
218218

219219
test-suite dispatcher-test
@@ -237,7 +237,7 @@ test-suite dispatcher-test
237237

238238
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Wredundant-constraints
239239
if flag(pedantic)
240-
ghc-options: -Werror
240+
ghc-options: -Werror -Wwarn=unused-imports
241241
default-language: Haskell2010
242242
build-tool-depends: hspec-discover:hspec-discover
243243

@@ -257,7 +257,7 @@ test-suite plugin-dispatcher-test
257257

258258
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Wredundant-constraints
259259
if flag(pedantic)
260-
ghc-options: -Werror
260+
ghc-options: -Werror -Wwarn=unused-imports
261261
default-language: Haskell2010
262262

263263
test-suite func-test
@@ -302,7 +302,7 @@ test-suite func-test
302302
, containers
303303
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Wredundant-constraints
304304
if flag(pedantic)
305-
ghc-options: -Werror
305+
ghc-options: -Werror -Wwarn=unused-imports
306306
default-language: Haskell2010
307307
build-tool-depends: hspec-discover:hspec-discover
308308
, haskell-ide-engine:hie
@@ -321,7 +321,7 @@ test-suite wrapper-test
321321
, hie-plugin-api
322322
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Wredundant-constraints
323323
if flag(pedantic)
324-
ghc-options: -Werror
324+
ghc-options: -Werror -Wwarn=unused-imports
325325
default-language: Haskell2010
326326

327327

hie-plugin-api/Haskell/Ide/Engine/Ghc.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
21
{-# LANGUAGE CPP #-}
32
{-# LANGUAGE FlexibleContexts #-}
43
{-# LANGUAGE OverloadedStrings #-}

hie-plugin-api/Haskell/Ide/Engine/PluginsIdeMonads.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
21
{-# LANGUAGE DeriveGeneric #-}
32
{-# LANGUAGE DeriveFunctor #-}
43
{-# LANGUAGE DeriveAnyClass #-}

src/Haskell/Ide/Engine/LSP/Completions.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
21
{-# LANGUAGE DeriveGeneric #-}
32
{-# LANGUAGE NamedFieldPuns #-}
43
{-# LANGUAGE OverloadedStrings #-}

src/Haskell/Ide/Engine/Plugin/ApplyRefact.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
21
{-# LANGUAGE DeriveAnyClass #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE DuplicateRecordFields #-}

src/Haskell/Ide/Engine/Plugin/Brittany.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
21
{-# LANGUAGE OverloadedStrings #-}
32
module Haskell.Ide.Engine.Plugin.Brittany where
43

src/Haskell/Ide/Engine/Plugin/Generic.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
21
{-# LANGUAGE CPP #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}

src/Haskell/Ide/Engine/Plugin/HsImport.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
21
{-# LANGUAGE OverloadedStrings #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE DeriveAnyClass #-}

src/Haskell/Ide/Engine/Plugin/Package.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
21
{-# LANGUAGE CPP #-}
32
{-# LANGUAGE OverloadedStrings #-}
43
{-# LANGUAGE DeriveGeneric #-}

src/Haskell/Ide/Engine/Plugin/Pragmas.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
21
{-# LANGUAGE DeriveAnyClass #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE OverloadedStrings #-}

src/Haskell/Ide/Engine/Scheduler.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
21
{-# LANGUAGE FlexibleContexts #-}
32
{-# LANGUAGE MultiParamTypeClasses #-}
43
{-# LANGUAGE ExistentialQuantification #-}

src/Haskell/Ide/Engine/Support/HieExtras.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
21
{-# LANGUAGE CPP #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE NamedFieldPuns #-}

src/Haskell/Ide/Engine/Transport/LspStdio.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
21
{-# LANGUAGE DuplicateRecordFields #-}
32
{-# LANGUAGE GADTs #-}
43
{-# LANGUAGE RankNTypes #-}

0 commit comments

Comments
 (0)