Skip to content

Commit 547fc4f

Browse files
committed
Set up default warnings for all packages
1 parent afec2cc commit 547fc4f

15 files changed

Lines changed: 225 additions & 52 deletions

File tree

packages/distributed-process-async/distributed-process-async.cabal

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,18 @@ source-repository head
2121
type: git
2222
location: https://github.com/haskell-distributed/distributed-process-async
2323

24+
common warnings
25+
ghc-options: -Wall
26+
-Wcompat
27+
-Widentities
28+
-Wincomplete-uni-patterns
29+
-Wincomplete-record-updates
30+
-Wredundant-constraints
31+
-fhide-source-paths
32+
-Wpartial-fields
33+
2434
library
35+
import: warnings
2536
build-depends:
2637
base >= 4.14 && < 5,
2738
data-accessor >= 0.2.2.3,
@@ -41,13 +52,13 @@ library
4152
InstanceSigs
4253
hs-source-dirs: src
4354
default-language: Haskell2010
44-
ghc-options: -Wall
4555
exposed-modules:
4656
Control.Distributed.Process.Async
4757
other-modules:
4858
Control.Distributed.Process.Async.Internal.Types
4959

5060
test-suite AsyncTests
61+
import: warnings
5162
type: exitcode-stdio-1.0
5263
x-uses-tf: true
5364
build-depends:
@@ -71,6 +82,6 @@ test-suite AsyncTests
7182
hs-source-dirs:
7283
tests
7384
default-language: Haskell2010
74-
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind
85+
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind
7586
default-extensions: CPP
7687
main-is: TestAsync.hs

packages/distributed-process-client-server/distributed-process-client-server.cabal

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,18 @@ source-repository head
2222
type: git
2323
location: https://github.com/haskell-distributed/distributed-process-client-server
2424

25+
common warnings
26+
ghc-options: -Wall
27+
-Wcompat
28+
-Widentities
29+
-Wincomplete-uni-patterns
30+
-Wincomplete-record-updates
31+
-Wredundant-constraints
32+
-fhide-source-paths
33+
-Wpartial-fields
34+
2535
library
36+
import: warnings
2637
build-depends:
2738
base >= 4.8.2.0 && < 5,
2839
distributed-process >= 0.6.6 && < 0.8,
@@ -40,7 +51,6 @@ library
4051
transformers,
4152
exceptions >= 0.10 && < 0.11
4253
hs-source-dirs: src
43-
ghc-options: -Wall
4454
exposed-modules:
4555
Control.Distributed.Process.ManagedProcess,
4656
Control.Distributed.Process.ManagedProcess.Client,
@@ -55,6 +65,7 @@ library
5565
other-modules: Control.Distributed.Process.ManagedProcess.Internal.PriorityQueue
5666

5767
test-suite ManagedProcessTests
68+
import: warnings
5869
type: exitcode-stdio-1.0
5970
x-uses-tf: true
6071
build-depends:
@@ -88,10 +99,11 @@ test-suite ManagedProcessTests
8899
TestUtils
89100
hs-source-dirs:
90101
tests
91-
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind
102+
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind
92103
main-is: TestManagedProcess.hs
93104

94105
test-suite PrioritisedProcessTests
106+
import: warnings
95107
type: exitcode-stdio-1.0
96108
x-uses-tf: true
97109
build-depends:
@@ -122,5 +134,5 @@ test-suite PrioritisedProcessTests
122134
TestUtils
123135
hs-source-dirs:
124136
tests
125-
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind
137+
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind
126138
main-is: TestPrioritisedProcess.hs

packages/distributed-process-execution/distributed-process-execution.cabal

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,18 @@ source-repository head
2323
type: git
2424
location: https://github.com/haskell-distributed/distributed-process-execution
2525

26+
common warnings
27+
ghc-options: -Wall
28+
-Wcompat
29+
-Widentities
30+
-Wincomplete-uni-patterns
31+
-Wincomplete-record-updates
32+
-Wredundant-constraints
33+
-fhide-source-paths
34+
-Wpartial-fields
35+
2636
library
37+
import: warnings
2738
build-depends:
2839
base >= 4.14 && < 5,
2940
data-accessor >= 0.2.2.3,
@@ -42,7 +53,6 @@ library
4253
time,
4354
transformers
4455
hs-source-dirs: src
45-
ghc-options: -Wall
4656
exposed-modules:
4757
Control.Distributed.Process.Execution,
4858
Control.Distributed.Process.Execution.EventManager,
@@ -55,6 +65,7 @@ library
5565

5666

5767
test-suite ExchangeTests
68+
import: warnings
5869
type: exitcode-stdio-1.0
5970
-- x-uses-tf: true
6071
build-depends:
@@ -89,11 +100,12 @@ test-suite ExchangeTests
89100
ghc-prim
90101
hs-source-dirs:
91102
tests
92-
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind -eventlog
103+
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind -eventlog
93104
main-is: TestExchange.hs
94105

95106

96107
test-suite MailboxTests
108+
import: warnings
97109
type: exitcode-stdio-1.0
98110
-- x-uses-tf: true
99111
build-depends:
@@ -128,6 +140,6 @@ test-suite MailboxTests
128140
ghc-prim
129141
hs-source-dirs:
130142
tests
131-
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind -eventlog
143+
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind -eventlog
132144
main-is: TestMailbox.hs
133145
other-modules: MailboxTestFilters

packages/distributed-process-extras/distributed-process-extras.cabal

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,25 @@ synopsis: Cloud Haskell Extras
1414
description: Supporting library, providing common types and utilities used by the
1515
various libraries built on top of distributed-process
1616
category: Control
17-
tested-with: GHC==8.10.7 GHC==9.0.2 GHC==9.2.8 GHC==9.4.5 GHC==9.6.4 GHC==9.8.2 GHC==9.10.1
17+
tested-with: GHC==8.10.7 GHC==9.0.2 GHC==9.2.8 GHC==9.4.5 GHC==9.6.4 GHC==9.8.2 GHC==9.10.1
1818
extra-source-files: ChangeLog
1919

2020
source-repository head
2121
type: git
2222
location: https://github.com/haskell-distributed/distributed-process-extras
2323

24+
common warnings
25+
ghc-options: -Wall
26+
-Wcompat
27+
-Widentities
28+
-Wincomplete-uni-patterns
29+
-Wincomplete-record-updates
30+
-Wredundant-constraints
31+
-fhide-source-paths
32+
-Wpartial-fields
33+
2434
library
35+
import: warnings
2536
build-depends: base >= 4.14 && < 5,
2637
distributed-process >= 0.6.0 && < 0.8,
2738
binary >= 0.8 && < 0.9,
@@ -36,7 +47,6 @@ library
3647
transformers >= 0.2 && < 0.7,
3748
time >= 1.5
3849
other-extensions: ExistentialQuantification
39-
ghc-options: -Wall
4050
HS-Source-Dirs: src
4151
exposed-modules:
4252
Control.Distributed.Process.Extras
@@ -55,6 +65,7 @@ library
5565
Control.Distributed.Process.Extras.Internal.Unsafe
5666

5767
test-suite InternalQueueTests
68+
import: warnings
5869
type: exitcode-stdio-1.0
5970
x-uses-tf: true
6071
build-depends:
@@ -70,13 +81,13 @@ test-suite InternalQueueTests
7081
test-framework-quickcheck2,
7182
rematch >= 0.2.0.0,
7283
ghc-prim
73-
hs-source-dirs:
74-
tests
75-
ghc-options: -Wall -rtsopts
84+
hs-source-dirs: tests
85+
ghc-options: -rtsopts
7686
main-is: TestQueues.hs
7787
cpp-options: -DTESTING
7888

7989
test-suite PrimitivesTests
90+
import: warnings
8091
type: exitcode-stdio-1.0
8192
x-uses-tf: true
8293
build-depends:
@@ -98,12 +109,12 @@ test-suite PrimitivesTests
98109
test-framework-hunit,
99110
rematch >= 0.2.0.0,
100111
transformers
101-
hs-source-dirs:
102-
tests
103-
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind
112+
hs-source-dirs: tests
113+
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind
104114
main-is: TestPrimitives.hs
105115

106116
test-suite TimerTests
117+
import: warnings
107118
type: exitcode-stdio-1.0
108119
x-uses-tf: true
109120
build-depends:
@@ -122,13 +133,13 @@ test-suite TimerTests
122133
test-framework-quickcheck2,
123134
rematch >= 0.2.0.0,
124135
ghc-prim
125-
hs-source-dirs:
126-
tests
127-
ghc-options: -Wall -rtsopts
136+
hs-source-dirs: tests
137+
ghc-options: -rtsopts
128138
main-is: TestTimer.hs
129139
cpp-options: -DTESTING
130140

131141
test-suite LoggerTests
142+
import: warnings
132143
type: exitcode-stdio-1.0
133144
-- x-uses-tf: true
134145
build-depends:
@@ -158,7 +169,6 @@ test-suite LoggerTests
158169
transformers,
159170
rematch >= 0.2.0.0,
160171
ghc-prim
161-
hs-source-dirs:
162-
tests
163-
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind
172+
hs-source-dirs: tests
173+
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind
164174
main-is: TestLog.hs

packages/distributed-process-simplelocalnet/distributed-process-simplelocalnet.cabal

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
cabal-version: 3.0
12
Name: distributed-process-simplelocalnet
23
Version: 0.3.1
3-
cabal-version: >=2.0
44
Build-Type: Simple
55
License: BSD-3-Clause
66
License-File: LICENSE
@@ -23,7 +23,18 @@ Source-Repository head
2323
Type: git
2424
Location: https://github.com/haskell-distributed/distributed-process-simplelocalnet
2525

26+
common warnings
27+
ghc-options: -Wall
28+
-Wcompat
29+
-Widentities
30+
-Wincomplete-uni-patterns
31+
-Wincomplete-record-updates
32+
-Wredundant-constraints
33+
-fhide-source-paths
34+
-Wpartial-fields
35+
2636
Library
37+
import: warnings
2738
Build-Depends: base >= 4.14 && < 5,
2839
bytestring >= 0.10 && < 0.13,
2940
exceptions >= 0.10 && <0.11,
@@ -39,10 +50,10 @@ Library
3950
Exposed-modules: Control.Distributed.Process.Backend.SimpleLocalnet,
4051
Control.Distributed.Process.Backend.SimpleLocalnet.Internal.Multicast
4152
Default-Language: Haskell2010
42-
ghc-options: -Wall
4353
HS-Source-Dirs: src
4454

4555
Test-Suite SimpleLocalNet-TestSuite
56+
import: warnings
4657
Type: exitcode-stdio-1.0
4758
Hs-Source-Dirs: tests
4859
Main-Is: Main.hs

packages/distributed-process-supervisor/distributed-process-supervisor.cabal

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,18 @@ source-repository head
2727
type: git
2828
location: https://github.com/haskell-distributed/distributed-process-supervisor
2929

30+
common warnings
31+
ghc-options: -Wall
32+
-Wcompat
33+
-Widentities
34+
-Wincomplete-uni-patterns
35+
-Wincomplete-record-updates
36+
-Wredundant-constraints
37+
-fhide-source-paths
38+
-Wpartial-fields
39+
3040
library
41+
import: warnings
3142
build-depends:
3243
base >= 4.14 && < 5,
3344
bytestring >= 0.10,
@@ -48,14 +59,14 @@ library
4859
transformers,
4960
exceptions >= 0.10 && < 0.11
5061
hs-source-dirs: src
51-
ghc-options: -Wall
5262
exposed-modules:
5363
Control.Distributed.Process.Supervisor
5464
Control.Distributed.Process.Supervisor.Management
5565
other-modules:
5666
Control.Distributed.Process.Supervisor.Types
5767

5868
test-suite SupervisorTests
69+
import: warnings
5970
type: exitcode-stdio-1.0
6071
build-depends:
6172
base >= 4.14 && < 5,
@@ -88,13 +99,13 @@ test-suite SupervisorTests
8899
rematch >= 0.2.0.0,
89100
ghc-prim,
90101
exceptions >= 0.10 && < 0.11
91-
hs-source-dirs:
92-
tests
93-
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N -fno-warn-name-shadowing -fno-warn-unused-do-bind -eventlog
102+
hs-source-dirs: tests
103+
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-name-shadowing -fno-warn-unused-do-bind -eventlog
94104
main-is: TestSupervisor.hs
95105
other-modules: TestUtils
96106

97107
test-suite NonThreadedSupervisorTests
108+
import: warnings
98109
type: exitcode-stdio-1.0
99110
build-depends:
100111
base >= 4.14 && < 5,
@@ -127,8 +138,7 @@ test-suite NonThreadedSupervisorTests
127138
rematch >= 0.2.0.0,
128139
ghc-prim,
129140
exceptions >= 0.10 && < 0.11
130-
hs-source-dirs:
131-
tests
132-
ghc-options: -Wall -rtsopts -fno-warn-unused-do-bind -fno-warn-name-shadowing
141+
hs-source-dirs: tests
142+
ghc-options: -rtsopts -fno-warn-unused-do-bind -fno-warn-name-shadowing
133143
main-is: TestSupervisor.hs
134144
other-modules: TestUtils

packages/distributed-process-systest/distributed-process-systest.cabal

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,18 @@ source-repository head
1616
type: git
1717
location: https://github.com/haskell-distributed/distributed-process-systest
1818

19+
common warnings
20+
ghc-options: -Wall
21+
-Wcompat
22+
-Widentities
23+
-Wincomplete-uni-patterns
24+
-Wincomplete-record-updates
25+
-Wredundant-constraints
26+
-fhide-source-paths
27+
-Wpartial-fields
28+
1929
library
30+
import: warnings
2031
exposed-modules: Control.Distributed.Process.SysTest.Utils
2132
Build-Depends: base >= 4.14 && < 5,
2233
ansi-terminal >= 0.5 && < 1.1,

0 commit comments

Comments
 (0)