File tree 3 files changed +17
-3
lines changed
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 6
6
export LANG=" C.UTF-8"
7
7
8
8
stack build ormolu
9
- cabal format
9
+ # # We can't format cabal at the moment because `cabal format` inlines
10
+ # # common stanzas, which is very much something that we don't want. See
11
+ # # https://github.com/haskell/cabal/issues/5734
12
+ #
13
+ # cabal format
10
14
stack exec ormolu -- -m inplace $( find . -type f -name " *.hs-boot" -o -name " *.hs" )
Original file line number Diff line number Diff line change 1
- cabal-version : >= 1.10
1
+ cabal-version : 3.0
2
2
name : linear-base
3
3
version : 0.1.1
4
4
license : MIT
@@ -21,7 +21,13 @@ source-repository head
21
21
type : git
22
22
location : https://github.com/tweag/linear-base
23
23
24
+ common warnings
25
+ ghc-options : -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wnoncanonical-monad-instances
26
+ -- Additional warnings we may consider adding:
27
+ -- * -Wredundant-constraints : would need deactivating in the modules which use Nat
28
+
24
29
library
30
+ import : warnings
25
31
exposed-modules :
26
32
Control.Monad.IO.Class.Linear
27
33
Control.Functor.Linear
@@ -109,6 +115,7 @@ library
109
115
default-language : Haskell2010
110
116
ghc-options : -O
111
117
build-depends :
118
+
112
119
base >= 4.15 && < 5 ,
113
120
containers,
114
121
ghc-prim,
@@ -120,6 +127,7 @@ library
120
127
primitive
121
128
122
129
test-suite test
130
+ import : warnings
123
131
type : exitcode-stdio-1.0
124
132
main-is : Main.hs
125
133
hs-source-dirs : test
@@ -148,6 +156,7 @@ test-suite test
148
156
vector
149
157
150
158
test-suite examples
159
+ import : warnings
151
160
type : exitcode-stdio-1.0
152
161
main-is : Main.hs
153
162
hs-source-dirs : examples
@@ -174,6 +183,7 @@ test-suite examples
174
183
text
175
184
176
185
benchmark mutable-data
186
+ import : warnings
177
187
type : exitcode-stdio-1.0
178
188
main-is : Main.hs
179
189
hs-source-dirs : bench
Original file line number Diff line number Diff line change 2
2
{-# LANGUAGE LambdaCase #-}
3
3
{-# LANGUAGE LinearTypes #-}
4
4
{-# LANGUAGE OverloadedStrings #-}
5
- {-# OPTIONS_GHC -Wno-name-shadowing #-}
5
+ {-# OPTIONS_GHC -Wno-name-shadowing -Wno-incomplete-uni-patterns #-}
6
6
7
7
-- |
8
8
-- Tests for mutable vectors.
You can’t perform that action at this time.
0 commit comments