Skip to content

Commit

Permalink
Fix -Wall and -Wunused-packages in explicit-record-fields plugin (has…
Browse files Browse the repository at this point in the history
…kell#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>
  • Loading branch information
jhrcek and mergify[bot] authored Jan 20, 2024
1 parent 456a0eb commit a57a0b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,13 @@ flag pedantic
manual: True

common warnings
ghc-options: -Wall
ghc-options: -Wall -Wunused-packages -Wincomplete-record-updates

library
import: warnings
exposed-modules: Ide.Plugin.ExplicitFields
-- other-modules:
-- other-extensions:
build-depends:
, base >=4.12 && <5
, ghc
, ghcide == 2.6.0.0
, hls-plugin-api == 2.6.0.0
, lsp
Expand All @@ -43,8 +40,6 @@ library
, text
, syb
, transformers
, ghc-boot-th
, unordered-containers
, containers
, aeson
hs-source-dirs: src
Expand All @@ -57,8 +52,6 @@ library
test-suite tests
import: warnings
default-language: Haskell2010
-- other-modules:
-- other-extensions:
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
Expand All @@ -67,5 +60,4 @@ test-suite tests
, filepath
, text
, hls-explicit-record-fields-plugin
, lsp-test
, hls-test-utils
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ import Development.IDE.Core.RuleTypes (TcModuleResult (..),
TypeCheck (..))
import qualified Development.IDE.Core.Shake as Shake
import Development.IDE.GHC.Compat (HsConDetails (RecCon),
HsExpansion (HsExpanded),
HsExpr (XExpr),
HsRecFields (..), LPat,
Outputable, getLoc,
recDotDot, unLoc)
Expand Down Expand Up @@ -85,8 +87,6 @@ import Language.LSP.Protocol.Types (CodeAction (..),
WorkspaceEdit (WorkspaceEdit),
type (|?) (InL, InR))

import Development.IDE.GHC.Compat (HsExpansion (HsExpanded),
HsExpr (XExpr))

data Log
= LogShake Shake.Log
Expand Down

0 comments on commit a57a0b3

Please sign in to comment.