File tree 5 files changed +15
-3
lines changed
5 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,7 @@ jobs:
192
192
allow-newer: deepseq-generics-0.2.0.0:base
193
193
allow-newer: deepseq-generics-0.2.0.0:ghc-prim
194
194
allow-newer: cryptohash-sha1-0.11.100.1:base
195
+ allow-newer: http-link-header-1.2.0:attoparsec
195
196
optimization: False
196
197
EOF
197
198
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(github|github-samples)$/; }' >> cabal.project.local
Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ constraints: github-samples +openssl
13
13
allow-newer : deepseq-generics-0.2.0.0 :base
14
14
allow-newer : deepseq-generics-0.2.0.0 :ghc-prim
15
15
allow-newer : cryptohash-sha1-0.11.100.1 :base
16
+ allow-newer : http-link-header-1.2.0 :attoparsec
Original file line number Diff line number Diff line change @@ -170,8 +170,8 @@ library
170
170
171
171
-- other packages
172
172
build-depends :
173
- aeson >= 1.4.0.0 && < 1.6
174
- , base-compat >= 0.11.1 && < 0.12
173
+ aeson >= 1.4.0.0 && < 1.6 || >= 2.0.1.0 && < 2.1
174
+ , base-compat >= 0.11.1 && < 0.13
175
175
, base16-bytestring >= 0.1.1.6 && < 1.1
176
176
, binary-instances >= 1 && < 1.1
177
177
, cryptohash-sha1 >= 0.11.100.1 && < 0.12
@@ -184,7 +184,7 @@ library
184
184
, iso8601-time >= 0.1.5 && < 0.2
185
185
, network-uri >= 2.6.1.0 && < 2.7
186
186
, tagged >= 0.8.5 && < 0.9
187
- , transformers-compat >= 0.6.5 && < 0.7
187
+ , transformers-compat >= 0.6.5 && < 0.8
188
188
, unordered-containers >= 0.2.10.0 && < 0.3
189
189
, vector >= 0.12.0.1 && < 0.13
190
190
, vector-instances >= 3.4 && < 3.5
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE RecordWildCards #-}
2
+ {-# LANGUAGE CPP #-}
2
3
-----------------------------------------------------------------------------
3
4
-- |
4
5
-- License : BSD-3-Clause
@@ -15,6 +16,10 @@ import Data.Aeson.Types (Pair)
15
16
import Data.Maybe (maybe )
16
17
import qualified Data.Text as T
17
18
19
+ #if MIN_VERSION_aeson(2,0,0)
20
+ import Data.Aeson (Key )
21
+ #endif
22
+
18
23
data Content
19
24
= ContentFile ! ContentFileData
20
25
| ContentDirectory ! (Vector ContentItem )
@@ -205,5 +210,9 @@ instance ToJSON DeleteFile where
205
210
++ " author" .=? deleteFileAuthor
206
211
++ " committer" .=? deleteFileCommitter
207
212
213
+ #if MIN_VERSION_aeson(2,0,0)
214
+ (.=?) :: ToJSON v => Key -> Maybe v -> [Pair ]
215
+ #else
208
216
(.=?) :: ToJSON v => Text -> Maybe v -> [Pair ]
217
+ #endif
209
218
name .=? value = maybe [] (pure . (name .= )) value
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE NoImplicitPrelude #-}
2
+ {-# LANGUAGE CPP #-}
2
3
-----------------------------------------------------------------------------
3
4
-- |
4
5
-- License : BSD-3-Clause
You can’t perform that action at this time.
0 commit comments