@@ -42,7 +42,10 @@ flag pedantic
4242
4343common warnings
4444 ghc-options :
45- -Wall -Wincomplete-uni-patterns -Wunused-packages
45+ -Wall
46+ -Wincomplete-uni-patterns
47+ -Wunused-packages
48+ -Wno-name-shadowing
4649 -Wno-unticked-promoted-constructors
4750 -fno-ignore-asserts
4851
@@ -216,12 +219,7 @@ library
216219 -- finished purging the warnings, so some are set to not be errors
217220 -- for now
218221 ghc-options :
219- -Werror -Wwarn=unused-packages -Wwarn=unrecognised-pragmas
220- -Wwarn=dodgy-imports -Wwarn=missing-signatures
221- -Wwarn=duplicate-exports -Wwarn=dodgy-exports
222- -Wwarn=incomplete-patterns -Wwarn=overlapping-patterns
223- -Wwarn=incomplete-record-updates
224- -Wwarn=ambiguous-fields
222+ -Werror -Wwarn=unused-packages
225223
226224 if flag(ekg)
227225 build-depends :
@@ -238,7 +236,6 @@ executable ghcide-test-preprocessor
238236 import : warnings
239237 default-language : GHC2021
240238 hs-source-dirs : test/preprocessor
241- ghc-options : -Wno-name-shadowing
242239 main-is : Main.hs
243240 build-depends : base >= 4 && < 5
244241
@@ -253,7 +250,7 @@ executable ghcide
253250 import : warnings
254251 default-language : GHC2021
255252 hs-source-dirs : exe
256- ghc-options : -threaded -rtsopts "-with-rtsopts=-I0 -A128M -T" -Wno-name-shadowing
253+ ghc-options : -threaded -rtsopts "-with-rtsopts=-I0 -A128M -T"
257254
258255
259256 -- allow user RTS overrides
@@ -352,7 +349,7 @@ test-suite ghcide-tests
352349 build-depends : ghc-typelits-knownnat
353350
354351 hs-source-dirs : test/cabal test/exe test/src
355- ghc-options : -threaded -O0 -Wno-name-shadowing
352+ ghc-options : -threaded -O0
356353
357354 main-is : Main.hs
358355 other-modules :
0 commit comments