Skip to content

Commit

Permalink
Allow zlib-0.7, time-1.14, drop GHC 7, remove unused package old-locale
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed Apr 9, 2024
1 parent 5e6081a commit 53e6fe8
Showing 1 changed file with 20 additions and 37 deletions.
57 changes: 20 additions & 37 deletions snap-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ tested-with:
GHC == 8.10.7
GHC == 9.0.2
GHC == 9.2.8
GHC == 9.4.7
GHC == 9.6.3
GHC == 9.8.1
GHC == 9.4.8
GHC == 9.6.4
GHC == 9.8.2

extra-source-files:
test/TestSuite.hs,
Expand Down Expand Up @@ -101,7 +101,7 @@ common universal
default-language: Haskell2010

build-depends:
, base >= 4 && < 5
, base >= 4.9 && < 5

Library
import: universal
Expand All @@ -116,7 +116,6 @@ Library
else
c-sources: cbits/timefuncs.c
include-dirs: cbits
build-depends: old-locale >= 1 && <2

exposed-modules:
Snap.Core,
Expand Down Expand Up @@ -147,9 +146,9 @@ Library
bytestring >= 0.9 && < 0.13,
bytestring-builder >= 0.10.4 && < 0.11,
case-insensitive >= 1.1 && < 1.3,
containers >= 0.3 && < 1.0,
containers >= 0.3 && < 1,
directory >= 1 && < 2,
filepath >= 1.1 && < 2.0,
filepath >= 1.1 && < 2,
lifted-base >= 0.1 && < 0.3,
io-streams >= 1.3 && < 1.6,
hashable >= 1.2.0.6 && < 1.5,
Expand All @@ -159,7 +158,7 @@ Library
readable >= 0.1 && < 0.4,
regex-posix >= 0.95 && < 1,
text >= 0.11 && < 2.2,
time >= 1.0 && < 1.14,
time >= 1.0 && < 1.15,
transformers >= 0.3 && < 0.7,
transformers-base >= 0.4 && < 0.5,
unix-compat >= 0.3 && < 0.8,
Expand All @@ -184,18 +183,10 @@ Library
ScopedTypeVariables,
TypeSynonymInstances

if impl(ghc >= 6.12.0)
ghc-options: -Wall -fwarn-tabs -fno-warn-unused-do-bind
else
ghc-options: -Wall -fwarn-tabs

-- See https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#base-4.9.0.0

if impl(ghc < 8.8)
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
else
build-depends: fail == 4.9.*, semigroups >= 0.18 && < 0.20
ghc-options:
-Wall
-Wcompat
-fno-warn-unused-do-bind

if flag(network-uri)
-- Leaving network-uri-2.7.0.0 out for now because it is marked deprecated
Expand All @@ -205,10 +196,6 @@ Library
build-depends: network-uri >= 2.5 && < 2.6,
network >= 2.3 && < 2.6

if !impl(ghc >= 7.6)
build-depends: unix-compat >= 0.3 && < 0.5.3


Test-suite testsuite
import: universal
hs-source-dirs: src test
Expand All @@ -221,7 +208,6 @@ Test-suite testsuite
else
c-sources: cbits/timefuncs.c
include-dirs: cbits
build-depends: old-locale >= 1 && <2

other-modules:
Snap.Core,
Expand Down Expand Up @@ -282,12 +268,12 @@ Test-suite testsuite
vector,
--------------------------------------------------------------------------
QuickCheck >= 2.3.0.2 && <3,
deepseq >= 1.1 && < 1.6,
deepseq >= 1.1 && <1.6,
parallel >= 3 && <4,
test-framework >= 0.8.0.3 && <0.9,
test-framework-hunit >= 0.2.7 && <0.4,
test-framework-quickcheck2 >= 0.2.12.1 && <0.4,
zlib >= 0.5 && <0.7
zlib >= 0.5 && <0.8

if flag(network-uri)
build-depends: network-uri,
Expand All @@ -296,15 +282,12 @@ Test-suite testsuite
build-depends: network-uri,
network

ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -threaded
-fno-warn-unused-do-bind

-- See https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#base-4.9.0.0
if impl(ghc < 8.8)
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
else
build-depends: fail == 4.9.*, semigroups >= 0.18 && < 0.20
ghc-options:
-threaded
-funbox-strict-fields
-Wall
-Wcompat
-fno-warn-unused-do-bind

other-extensions:
BangPatterns,
Expand All @@ -327,4 +310,4 @@ Test-suite testsuite

source-repository head
type: git
location: git://github.com/snapframework/snap-core.git
location: https://github.com/snapframework/snap-core.git

0 comments on commit 53e6fe8

Please sign in to comment.