-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop support for GHC 7 and bytestring < 0.10.4.
- Loading branch information
1 parent
206d4a5
commit 3f79249
Showing
10 changed files
with
28 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ Extra-source-files: examples/*.hs, | |
Tested-with: | ||
GHC == 9.8.1 | ||
GHC == 9.6.3 | ||
GHC == 9.4.7 | ||
GHC == 9.4.8 | ||
GHC == 9.2.8 | ||
GHC == 9.0.2 | ||
GHC == 8.10.7 | ||
|
@@ -55,28 +55,20 @@ Tested-with: | |
GHC == 8.4.4 | ||
GHC == 8.2.2 | ||
GHC == 8.0.2 | ||
-- GHC == 7.10.3 | ||
-- GHC == 7.8.4 | ||
-- GHC == 7.6.3 | ||
-- GHC == 7.4.2 | ||
|
||
---------------------------------------------------------------------------- | ||
|
||
source-repository head | ||
type: git | ||
location: https://github.com/haskell-hvr/cassava.git | ||
|
||
flag bytestring--LT-0_10_4 | ||
description: [bytestring](https://hackage.haskell.org/haskell/package/bytestring) < 0.10.4 | ||
default: False | ||
manual: False | ||
|
||
Library | ||
default-language: Haskell2010 | ||
other-extensions: | ||
BangPatterns | ||
CPP | ||
DataKinds | ||
DataKinds | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
andreasabel
Author
Member
|
||
DefaultSignatures | ||
DeriveFunctor | ||
FlexibleContexts | ||
|
@@ -85,16 +77,12 @@ Library | |
MultiParamTypeClasses | ||
OverloadedStrings | ||
PolyKinds | ||
PolyKinds | ||
Rank2Types | ||
ScopedTypeVariables | ||
TypeOperators | ||
UndecidableInstances | ||
|
||
if impl(ghc >= 8.0) | ||
other-extensions: | ||
DataKinds | ||
PolyKinds | ||
|
||
hs-source-dirs: src | ||
|
||
Exposed-modules: | ||
|
@@ -112,51 +100,35 @@ Library | |
Data.Csv.Util | ||
|
||
Build-depends: | ||
base >= 4.5 && < 5 | ||
base >= 4.9 && < 5 | ||
, array >= 0.4 && < 0.6 | ||
, attoparsec >= 0.11.3.0 && < 0.15 | ||
, bytestring >= 0.9.2 && < 0.13 | ||
, bytestring >= 0.10.4 && < 0.13 | ||
, containers >= 0.4.2 && < 0.8 | ||
, deepseq >= 1.1 && < 1.6 | ||
, hashable < 1.5 | ||
, scientific >= 0.3.4.7 && < 0.4 | ||
, text < 2.2 | ||
, text-short == 0.1.* | ||
, transformers >= 0.2 && < 0.7 | ||
, unordered-containers < 0.3 | ||
, vector >= 0.8 && < 0.14 | ||
, Only >= 0.1 && < 0.1.1 | ||
|
||
if flag(bytestring--LT-0_10_4) | ||
build-depends: bytestring < 0.10.4 | ||
, bytestring-builder >= 0.10.8 && < 0.11 | ||
else | ||
build-depends: bytestring >= 0.10.4 | ||
, text-short == 0.1.* | ||
|
||
-- GHC.Generics lived in `ghc-prim` for GHC 7.2 & GHC 7.4 only | ||
if impl(ghc < 7.6) | ||
build-depends: ghc-prim == 0.2.* | ||
|
||
-- For Numeric.Natural | ||
if impl(ghc < 7.10) | ||
build-depends: nats >= 1 && < 1.2 | ||
|
||
-- https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#Recommendationsforforward-compatibility | ||
if impl(ghc >= 8.0) | ||
ghc-options: -Wcompat -Wnoncanonical-monad-instances | ||
if impl(ghc >= 8.8) | ||
ghc-options: -Wno-star-is-type | ||
else | ||
ghc-options: -Wnoncanonical-monadfail-instances | ||
ghc-options: | ||
-Wall | ||
-- https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#Recommendationsforforward-compatibility | ||
-Wcompat | ||
-Wnoncanonical-monad-instances | ||
|
||
if impl(ghc >= 8.8) | ||
ghc-options: -Wno-star-is-type | ||
else | ||
-- provide/emulate `Control.Monad.Fail` and `Data.Semigroups` API for pre-GHC8 | ||
build-depends: fail == 4.9.*, semigroups >= 0.18.2 && <0.20 | ||
ghc-options: -Wnoncanonical-monadfail-instances | ||
|
||
if impl(ghc >= 8.2) | ||
ghc-options: -Wcpp-undef | ||
|
||
ghc-options: -Wall | ||
|
||
---------------------------------------------------------------------------- | ||
|
||
Test-suite unit-tests | ||
|
@@ -184,24 +156,16 @@ Test-suite unit-tests | |
|
||
hs-source-dirs: tests | ||
|
||
-- GHC.Generics lived in `ghc-prim` for GHC 7.2 & GHC 7.4 only | ||
if impl(ghc < 7.6) | ||
build-depends: ghc-prim == 0.2.* | ||
ghc-options: | ||
-Wall | ||
-- https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#Recommendationsforforward-compatibility | ||
-Wcompat | ||
-Wnoncanonical-monad-instances | ||
|
||
-- For Numeric.Natural | ||
if impl(ghc < 7.10) | ||
build-depends: nats | ||
|
||
-- https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#Recommendationsforforward-compatibility | ||
if impl(ghc >= 8.0) | ||
ghc-options: -Wcompat -Wnoncanonical-monad-instances | ||
if impl(ghc < 8.8) | ||
ghc-options: -Wnoncanonical-monadfail-instances | ||
if impl(ghc >= 8.8) | ||
ghc-options: -Wno-star-is-type | ||
else | ||
-- provide/emulate `Control.Monad.Fail` and `Data.Semigroups` API for pre-GHC8 | ||
build-depends: fail, semigroups | ||
ghc-options: -Wnoncanonical-monadfail-instances | ||
|
||
if impl(ghc >= 8.2) | ||
ghc-options: -Wcpp-undef | ||
|
||
ghc-options: -Wall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
This and
PolyKinds
duplicate is probably a mistake?Harmless, but slightly ugly.