Skip to content

Commit 3ac0f69

Browse files
committed
use Cabal 3.6
1 parent f1d7e39 commit 3ac0f69

File tree

4 files changed

+9
-14
lines changed

4 files changed

+9
-14
lines changed

hackage-server.cabal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ common defaults
117117
-- other dependencies shared by most components
118118
build-depends:
119119
, aeson ^>= 2.0.3.0
120-
, Cabal ^>= 3.8
120+
, Cabal ^>= 3.6.3.0
121+
, Cabal-syntax ^>= 3.6
121122
, fail ^>= 4.9.0
122123
-- we use Control.Monad.Except, introduced in mtl-2.2.1
123124
, network >= 3 && < 3.2
@@ -392,7 +393,7 @@ library lib-server
392393
, ed25519 ^>= 0.0.5
393394
, hackage-security ^>= 0.6
394395
, hackage-security-HTTP ^>= 0.1.1
395-
, haddock-library >= 1.11 && < 2
396+
, haddock-library > 1.7 && < 2
396397
, happstack-server ^>= 7.7.1
397398
, hashable ^>= 1.3 || ^>= 1.4
398399
, hslogger ^>= 1.3.1

src/Distribution/Server/Features/BuildReports/BuildReport.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ import Distribution.FieldGrammar
7171
import Distribution.Fields.Parser
7272
( readFields )
7373
import Distribution.Fields.Pretty
74-
( showFields, CommentPosition (..) )
74+
( showFields )
7575
import Distribution.Fields.ParseResult
7676
(ParseResult, parseFatalFailure, runParseResult )
7777
import Distribution.Server.Framework.Instances ()
@@ -311,7 +311,7 @@ intPair = do
311311
-- Pretty-printing
312312

313313
show :: BuildReport -> String
314-
show = showFields (const NoComment) . prettyFieldGrammar CabalSpecV2_4 fieldDescrs
314+
show = showFields (const []) . prettyFieldGrammar CabalSpecV2_4 fieldDescrs
315315

316316
-- -----------------------------------------------------------------------------
317317
-- Description of the fields, for parsing/printing

src/Distribution/Server/Framework/Instances.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ instance SafeCopy OS where
136136
putCopy Ghcjs = contain $ putWord8 14
137137
putCopy Hurd = contain $ putWord8 15
138138
putCopy Android = contain $ putWord8 16
139-
putCopy Wasi = contain $ putWord8 17
140139

141140
getCopy = contain $ do
142141
tag <- getWord8
@@ -158,7 +157,6 @@ instance SafeCopy OS where
158157
14 -> return Ghcjs
159158
15 -> return Hurd
160159
16 -> return Android
161-
17 -> return Wasi
162160
_ -> fail "SafeCopy OS getCopy: unexpected tag"
163161

164162
instance SafeCopy Arch where
@@ -182,8 +180,6 @@ instance SafeCopy Arch where
182180
putCopy Vax = contain $ putWord8 15
183181
putCopy JavaScript = contain $ putWord8 16
184182
putCopy AArch64 = contain $ putWord8 17
185-
putCopy S390X = contain $ putWord8 18
186-
putCopy Wasm32 = contain $ putWord8 19
187183

188184
getCopy = contain $ do
189185
tag <- getWord8
@@ -206,8 +202,6 @@ instance SafeCopy Arch where
206202
15 -> return Vax
207203
16 -> return JavaScript
208204
17 -> return AArch64
209-
18 -> return S390X
210-
19 -> return Wasm32
211205
_ -> fail "SafeCopy Arch getCopy: unexpected tag"
212206

213207
instance SafeCopy CompilerFlavor where

src/Distribution/Server/Util/CabalRevisions.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import Distribution.Pretty (Pretty (..), prettyShow)
3838
import Distribution.Version
3939
import Distribution.Compiler (CompilerFlavor)
4040
import Distribution.FieldGrammar (prettyFieldGrammar)
41-
import Distribution.Fields.Pretty (PrettyField (..), showFields, CommentPosition (..))
41+
import Distribution.Fields.Pretty (PrettyField (..), showFields)
4242
import Distribution.PackageDescription
4343
import Distribution.PackageDescription.Parsec (parseGenericPackageDescription, runParseResult)
4444
import Distribution.PackageDescription.FieldGrammar (sourceRepoFieldGrammar)
@@ -340,7 +340,7 @@ checkPackageDescriptions checkXRevision
340340
checkSame "The package-url field is unused, don't bother changing it."
341341
pkgUrlA pkgUrlB
342342
changesOk "bug-reports" fromShortText bugReportsA bugReportsB
343-
changesOkList changesOk "source-repository" (showFields (const NoComment) . (:[]) . ppSourceRepo)
343+
changesOkList changesOk "source-repository" (showFields (const []) . (:[]) . ppSourceRepo)
344344
sourceReposA sourceReposB
345345
changesOk "synopsis" fromShortText synopsisA synopsisB
346346
changesOk "description" fromShortText descriptionA descriptionB
@@ -625,8 +625,8 @@ checkExecutable componentName
625625

626626
checkTestSuite :: ComponentName -> Check TestSuite
627627
checkTestSuite componentName
628-
(TestSuite _nameA interfaceA buildInfoA _codeGenA)
629-
(TestSuite _nameB interfaceB buildInfoB _codeGenB) = do
628+
(TestSuite _nameA interfaceA buildInfoA)
629+
(TestSuite _nameB interfaceB buildInfoB) = do
630630
checkSame "Cannot change test-suite type" interfaceA interfaceB
631631
checkBuildInfo componentName buildInfoA buildInfoB
632632

0 commit comments

Comments
 (0)