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

Commit f5f850f

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

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
@@ -102,7 +102,7 @@ library
102102

103103
ghc-options: -Wall -Wredundant-constraints
104104
if flag(pedantic)
105-
ghc-options: -Werror
105+
ghc-options: -Werror -Wwarn=unused-imports
106106
default-language: Haskell2010
107107

108108
executable hie
@@ -121,7 +121,7 @@ executable hie
121121
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Wredundant-constraints
122122
-with-rtsopts=-T
123123
if flag(pedantic)
124-
ghc-options: -Werror
124+
ghc-options: -Werror -Wwarn=unused-imports
125125
default-language: Haskell2010
126126

127127

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

148148
library hie-test-utils
@@ -168,7 +168,7 @@ library hie-test-utils
168168
, yaml
169169
ghc-options: -Wall -Wredundant-constraints
170170
if flag(pedantic)
171-
ghc-options: -Werror
171+
ghc-options: -Werror -Wwarn=unused-imports
172172
default-language: Haskell2010
173173

174174
test-suite unit-test
@@ -212,7 +212,7 @@ test-suite unit-test
212212

213213
ghc-options: -Wall -Wredundant-constraints
214214
if flag(pedantic)
215-
ghc-options: -Werror
215+
ghc-options: -Werror -Wwarn=unused-imports
216216
default-language: Haskell2010
217217

218218
test-suite dispatcher-test
@@ -236,7 +236,7 @@ test-suite dispatcher-test
236236

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

@@ -256,7 +256,7 @@ test-suite plugin-dispatcher-test
256256

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

262262
test-suite func-test
@@ -301,7 +301,7 @@ test-suite func-test
301301
, containers
302302
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Wredundant-constraints
303303
if flag(pedantic)
304-
ghc-options: -Werror
304+
ghc-options: -Werror -Wwarn=unused-imports
305305
default-language: Haskell2010
306306
build-tool-depends: hspec-discover:hspec-discover
307307
, haskell-ide-engine:hie
@@ -320,7 +320,7 @@ test-suite wrapper-test
320320
, hie-plugin-api
321321
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Wredundant-constraints
322322
if flag(pedantic)
323-
ghc-options: -Werror
323+
ghc-options: -Werror -Wwarn=unused-imports
324324
default-language: Haskell2010
325325

326326

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/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 #-}

0 commit comments

Comments
 (0)