on master help sign in
Allow building with both the newest deepseq (>= 1.2) and containers (>= 0.4.2)

Use the flag old-deepseq-containers to build with older versions.

commit39369c9646db792237684a8e5f188b94ef2e7ce4 authorBas van Dijk <v.dijk.bas@gmail.com> dateMon 24 Oct 2011, 15:49 (15 years ago) parent54c263a
1 file changed+12−2
aeson.cabal+12−2
aeson.cabal+12−2
@@ -102,6 +102,9 @@ flag developer
102102 description: operate in developer mode
103103 default: False
104104
105+flag old-deepseq-containers
106+ default: False
107+
105108library
106109 exposed-modules:
107110 Data.Aeson
@@ -121,8 +124,6 @@ library
121124 blaze-builder >= 0.2.1.4,
122125 blaze-textual >= 0.2.0.2,
123126 bytestring,
124− containers,
125− deepseq < 1.2,
126127 hashable >= 1.1.2.0,
127128 mtl,
128129 old-locale,
@@ -133,6 +134,15 @@ library
133134 unordered-containers >= 0.1.3.0,
134135 vector >= 0.7
135136
137+ if flag(old-deepseq-containers)
138+ build-depends:
139+ containers < 0.4.2,
140+ deepseq < 1.2
141+ else
142+ build-depends:
143+ containers >= 0.4.2,
144+ deepseq >= 1.2
145+
136146 if flag(developer)
137147 ghc-options: -Werror
138148 ghc-prof-options: -auto-all