Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 41 additions & 25 deletions hackage-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,28 @@ flag doctests

----------------------------------------------------------------------------

common language-defaults
default-language:
Haskell2010
default-extensions:
LambdaCase
TupleSections
other-extensions:
CPP
TemplateHaskell

ghc-options:
-funbox-strict-fields
-Wall
-Wtabs
-Wno-deprecated-flags
-Wno-unused-do-bind
-Wno-unused-record-wildcards
-Werror=incomplete-patterns
-Werror=missing-methods

common defaults
default-language: Haskell2010
import: language-defaults

-- version ranges of pre-installed packages for GHC
--
Expand All @@ -137,7 +157,6 @@ common defaults
, mtl >= 2.2.1 && < 2.4
-- we use Control.Monad.Except, introduced in mtl-2.2.1
, pretty >= 1.1 && < 1.2
, process >= 1.6 && < 1.7
, text ^>= 1.2.5.0 || >= 2.0 && < 2.2
, time >= 1.9 && < 1.15
, transformers >= 0.5 && < 0.7
Expand All @@ -150,8 +169,6 @@ common defaults
, Cabal-syntax >= 3.14.2.0 && < 3.16
-- Cabal-syntax needs to be bound to constrain hackage-security
-- see https://github.com/haskell/hackage-server/issues/1130
, fail ^>= 4.9.0
, network >= 3 && < 3.3
, network-bsd ^>= 2.8
, network-uri ^>= 2.6
, parsec ^>= 3.1.13
Expand All @@ -160,19 +177,6 @@ common defaults
, vector ^>= 0.12 || ^>= 0.13.0.0
, zlib ^>= 0.6.2 || ^>= 0.7.0.0

ghc-options:
-funbox-strict-fields
-Wall
-Wtabs
-Wno-deprecated-flags
-Wno-unused-do-bind
-Wno-unused-record-wildcards
-Werror=incomplete-patterns
-Werror=missing-methods

default-extensions: LambdaCase, TupleSections
other-extensions: CPP, TemplateHaskell


library
import: defaults
Expand Down Expand Up @@ -423,7 +427,6 @@ library
, bimap ^>= 0.5
--NOTE: blaze-builder-0.4 is now a compat package that uses bytestring-0.10 builder
, blaze-builder ^>= 0.4
, blaze-html ^>= 0.9
, cereal ^>= 0.5
, commonmark ^>= 0.2
-- commonmark-0.2 needed by commonmark-extensions-0.2.2
Expand All @@ -433,7 +436,6 @@ library
, cryptohash-sha256 ^>= 0.11.100
, csv ^>= 0.1
, ed25519 ^>= 0.0.5
, exceptions ^>= 0.10
, hackage-security >= 0.6 && < 0.7
-- N.B: hackage-security-0.6.2 uses Cabal-syntax-3.8.1.0
-- see https://github.com/haskell/hackage-server/issues/1130
Expand All @@ -451,11 +453,9 @@ library
, random >= 1.2 && < 1.4
, rss ^>= 3000.2.0.7
, safecopy ^>= 0.10
, semigroups ^>= 0.20
, split ^>= 0.2
, stm ^>= 2.5.0
, stringsearch ^>= 0.3.6.6
, tagged ^>= 0.8.5
, transformers ^>= 0.6
, xhtml >= 3000.2.0.0 && < 3000.5
, xmlgen ^>= 0.6
Expand All @@ -474,21 +474,35 @@ library

----------------------------------------------------------------------------

common exe-defaults
import: defaults
common exe-base
import: language-defaults

build-depends: hackage-server
hs-source-dirs: exes
ghc-options: -threaded -rtsopts

other-modules: Paths_hackage_server
autogen-modules: Paths_hackage_server

build-depends:
, base
, hackage-server

common exe-defaults
import: defaults
import: exe-base

executable hackage-server
import: exe-defaults
import: exe-base

main-is: Main.hs
build-depends:
, bytestring
, Cabal
, directory
, filepath
, network-uri
, parsec
, unix

ghc-options: -with-rtsopts=-I00

Expand All @@ -501,6 +515,7 @@ executable hackage-mirror
-- version constraints inherited from hackage-server
, HTTP
, hackage-security
, process >= 1.6 && < 1.7

executable hackage-build
import: exe-defaults
Expand All @@ -510,6 +525,7 @@ executable hackage-build
build-depends:
-- version constraints inherited from hackage-server
, http-types
, process >= 1.6 && < 1.7

-- Runtime dependency only;
-- TODO: we have no proper support for this kind of dependencies in cabal
Expand Down
Loading