Skip to content

Commit 1be6439

Browse files
jhrcekmergify[bot]
authored andcommitted
Fix -Wall and -Wunused-packages in explicit-record-fields plugin (haskell#3996)
* Fix -Wall and -Wunused-packages in explicit-record-fields plugin * Don't remove -Wwarn=incomplete-record-updates --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 3f731ac commit 1be6439

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

plugins/hls-explicit-record-fields-plugin/hls-explicit-record-fields-plugin.cabal

+1-9
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@ flag pedantic
2525
manual: True
2626

2727
common warnings
28-
ghc-options: -Wall
28+
ghc-options: -Wall -Wunused-packages -Wincomplete-record-updates
2929

3030
library
3131
import: warnings
3232
exposed-modules: Ide.Plugin.ExplicitFields
33-
-- other-modules:
34-
-- other-extensions:
3533
build-depends:
3634
, base >=4.12 && <5
37-
, ghc
3835
, ghcide == 2.6.0.0
3936
, hls-plugin-api == 2.6.0.0
4037
, lsp
@@ -43,8 +40,6 @@ library
4340
, text
4441
, syb
4542
, transformers
46-
, ghc-boot-th
47-
, unordered-containers
4843
, containers
4944
, aeson
5045
hs-source-dirs: src
@@ -57,8 +52,6 @@ library
5752
test-suite tests
5853
import: warnings
5954
default-language: Haskell2010
60-
-- other-modules:
61-
-- other-extensions:
6255
type: exitcode-stdio-1.0
6356
hs-source-dirs: test
6457
main-is: Main.hs
@@ -67,5 +60,4 @@ test-suite tests
6760
, filepath
6861
, text
6962
, hls-explicit-record-fields-plugin
70-
, lsp-test
7163
, hls-test-utils

plugins/hls-explicit-record-fields-plugin/src/Ide/Plugin/ExplicitFields.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ import Development.IDE.Core.RuleTypes (TcModuleResult (..),
4040
TypeCheck (..))
4141
import qualified Development.IDE.Core.Shake as Shake
4242
import Development.IDE.GHC.Compat (HsConDetails (RecCon),
43+
HsExpansion (HsExpanded),
44+
HsExpr (XExpr),
4345
HsRecFields (..), LPat,
4446
Outputable, getLoc,
4547
recDotDot, unLoc)
@@ -85,8 +87,6 @@ import Language.LSP.Protocol.Types (CodeAction (..),
8587
WorkspaceEdit (WorkspaceEdit),
8688
type (|?) (InL, InR))
8789

88-
import Development.IDE.GHC.Compat (HsExpansion (HsExpanded),
89-
HsExpr (XExpr))
9090

9191
data Log
9292
= LogShake Shake.Log

0 commit comments

Comments
 (0)