@@ -51,10 +51,6 @@ source-repository head
51
51
type : git
52
52
location : https://github.com/haskell/hackage-security.git
53
53
54
- flag base48
55
- description : Are we using @base@ 4.8 or later?
56
- manual : False
57
-
58
54
flag use-network-uri
59
55
description : Are we using @network-uri@?
60
56
manual : False
@@ -64,16 +60,6 @@ flag Cabal-syntax
64
60
manual : False
65
61
default : False
66
62
67
- flag old-directory
68
- description : Use @directory@ < 1.2 and @old-time@
69
- manual : False
70
- default : False
71
-
72
- flag mtl21
73
- description : Use @mtl@ < 2.2 and @mtl-compat@
74
- manual : False
75
- default : False
76
-
77
63
flag lukko
78
64
description : Use @lukko@ for file-locking, otherwise use @GHC.IO.Handle.Lock@
79
65
manual : True
@@ -126,17 +112,19 @@ library
126
112
Hackage.Security.Util.TypedEmbedded
127
113
MyPrelude
128
114
-- We support ghc 7.4 (bundled with Cabal 1.14) and up
129
- build-depends : base >= 4.7 && < 4.20 ,
115
+ build-depends : base >= 4.8 && < 4.20 ,
130
116
-- PatternSynonyms are only available since GHC 7.8 (base 4.7)
131
117
base16-bytestring >= 0.1.1 && < 1.1 ,
132
118
base64-bytestring >= 1.0 && < 1.3 ,
133
119
bytestring >= 0.9 && < 0.13 ,
134
120
containers >= 0.4 && < 0.8 ,
121
+ cryptohash-sha256 >= 0.11 && < 0.12 ,
122
+ directory >= 1.2 && < 1.4 ,
135
123
ed25519 >= 0.0 && < 0.1 ,
136
124
filepath >= 1.2 && < 1.5 ,
125
+ mtl >= 2.2 && < 2.4 ,
137
126
parsec >= 3.1 && < 3.2 ,
138
127
pretty >= 1.0 && < 1.2 ,
139
- cryptohash-sha256 >= 0.11 && < 0.12 ,
140
128
-- 0.4.2 introduces TarIndex, 0.4.4 introduces more
141
129
-- functionality, 0.5.0 changes type of serialise
142
130
tar >= 0.5 && < 0.7 ,
@@ -146,17 +134,6 @@ library
146
134
zlib >= 0.5 && < 0.7 ,
147
135
-- whatever versions are bundled with ghc:
148
136
ghc-prim
149
- if flag(old-directory)
150
- build-depends : directory >= 1.1.0.2 && < 1.2 ,
151
- old-time >= 1 && < 1.2
152
- else
153
- build-depends : directory >= 1.2 && < 1.4
154
-
155
- if flag(mtl21)
156
- build-depends : mtl >= 2.1 && < 2.2 ,
157
- mtl-compat >= 0.2 && < 0.3
158
- else
159
- build-depends : mtl >= 2.2 && < 2.4
160
137
161
138
if flag(lukko)
162
139
build-depends : lukko >= 0.1 && < 0.2
@@ -194,10 +171,14 @@ library
194
171
TypeFamilies
195
172
TypeOperators
196
173
ViewPatterns
197
- other-extensions : BangPatterns
174
+ other-extensions :
175
+ AllowAmbiguousTypes
176
+ BangPatterns
198
177
CPP
199
178
OverlappingInstances
200
179
PackageImports
180
+ RoleAnnotations
181
+ StaticPointers
201
182
UndecidableInstances
202
183
203
184
-- use the new stage1/cross-compile-friendly DeriveLift extension for GHC 8.0+
@@ -208,11 +189,6 @@ library
208
189
209
190
ghc-options : -Wall
210
191
211
- if flag(base48)
212
- build-depends : base >= 4.8
213
- else
214
- build-depends : base < 4.8 , old-locale == 1.0. *
215
-
216
192
-- The URI type got split out off the network package after version 2.5, and
217
193
-- moved to a separate network-uri package. Since we don't need the rest of
218
194
-- network here, it would suffice to rely only on network-uri:
@@ -252,13 +228,6 @@ library
252
228
else
253
229
build-depends : network >= 2.5 && < 2.6
254
230
255
- if impl(ghc >= 7.8 )
256
- other-extensions : RoleAnnotations
257
-
258
- if impl(ghc >= 7.10 )
259
- other-extensions : AllowAmbiguousTypes
260
- StaticPointers
261
-
262
231
test-suite TestSuite
263
232
type : exitcode-stdio-1.0
264
233
main-is : TestSuite.hs
0 commit comments