Skip to content

Commit d7da431

Browse files
mpscholtenclaude
andcommitted
Add -Werror=unused-imports to all IHP packages
6 packages already had this flag; add it to the remaining 20 so unused imports are caught as hard errors across the entire monorepo. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent 2ca1c3e commit d7da431

File tree

20 files changed

+20
-20
lines changed

20 files changed

+20
-20
lines changed

ihp-context/ihp-context.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ common shared-properties
3232
, ImplicitParams
3333
, BlockArguments
3434
, LambdaCase
35-
ghc-options: -Werror=incomplete-patterns
35+
ghc-options: -Werror=incomplete-patterns -Werror=unused-imports
3636

3737
library
3838
import: shared-properties

ihp-datasync-typescript/ihp-datasync-typescript.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ common shared-properties
3636
, LambdaCase
3737
, TemplateHaskell
3838
, OverloadedRecordDot
39-
ghc-options: -Werror=incomplete-patterns
39+
ghc-options: -Werror=incomplete-patterns -Werror=unused-imports
4040

4141
library
4242
import: shared-properties

ihp-graphql/ihp-graphql.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ common shared-properties
4747
, LambdaCase
4848
, TemplateHaskell
4949
, OverloadedRecordDot
50-
ghc-options: -Werror=incomplete-patterns
50+
ghc-options: -Werror=incomplete-patterns -Werror=unused-imports
5151

5252
library
5353
import: shared-properties

ihp-hspec/ihp-hspec.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ library
2727
OverloadedStrings
2828
ImplicitParams
2929
RecordWildCards
30-
ghc-options: -Werror=incomplete-patterns
30+
ghc-options: -Werror=incomplete-patterns -Werror=unused-imports
3131
build-depends: base >= 4.17.0 && < 4.22, ihp, ihp-log, wai, process, text, ihp-ide, vault, uuid, hasql, wai-request-params
3232
hs-source-dirs: .
3333
exposed-modules: IHP.Hspec

ihp-imagemagick/ihp-imagemagick.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ common ihp-std
3030
BlockArguments
3131
OverloadedStrings
3232
ImplicitParams
33-
ghc-options: -Werror=incomplete-patterns
33+
ghc-options: -Werror=incomplete-patterns -Werror=unused-imports
3434

3535
library
3636
import: ihp-std

ihp-job-dashboard/ihp-job-dashboard.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build-type: Simple
1515

1616
library
1717
default-language: GHC2021
18-
ghc-options: -Werror=incomplete-patterns
18+
ghc-options: -Werror=incomplete-patterns -Werror=unused-imports
1919
build-depends:
2020
base >= 4.17.0 && < 4.22
2121
, wai

ihp-log/ihp-log.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ common shared-properties
3232
, OverloadedRecordDot
3333
, DuplicateRecordFields
3434
, LambdaCase
35-
ghc-options: -Werror=incomplete-patterns
35+
ghc-options: -Werror=incomplete-patterns -Werror=unused-imports
3636

3737
library
3838
import: shared-properties

ihp-mail/ihp-mail.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ common shared-properties
4141
, TemplateHaskell
4242
, OverloadedRecordDot
4343
, DeepSubsumption
44-
ghc-options: -Werror=incomplete-patterns
44+
ghc-options: -Werror=incomplete-patterns -Werror=unused-imports
4545

4646
library
4747
import: shared-properties

ihp-migrate/ihp-migrate.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ common ihp-std
2424
BlockArguments
2525
OverloadedStrings
2626
ImplicitParams
27-
ghc-options: -Werror=incomplete-patterns
27+
ghc-options: -Werror=incomplete-patterns -Werror=unused-imports
2828

2929
library
3030
import: ihp-std

ihp-modal/ihp-modal.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ common shared-properties
3030
, RecordWildCards
3131
, QuasiQuotes
3232
, OverloadedRecordDot
33-
ghc-options: -Werror=incomplete-patterns
33+
ghc-options: -Werror=incomplete-patterns -Werror=unused-imports
3434

3535
library
3636
import: shared-properties

0 commit comments

Comments
 (0)