Skip to content

Commit

Permalink
Updated for new aeson, updated stack resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
verifiedtm committed Jan 9, 2025
1 parent 24ba939 commit 9e3bb07
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-22.30
resolver: lts-23.3
flags: {}
packages:
- vault-tool
Expand Down
8 changes: 4 additions & 4 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
packages: []
snapshots:
- completed:
sha256: 795b7a893148a42f09956611a0fa1139293fe6ef934d053468d8e53e3e013390
size: 719577
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/30.yaml
original: lts-22.30
sha256: dd89d2322cb5af74c6ab9d96c0c5f6c8e6653e0c991d619b4bb141a49cb98668
size: 679282
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/23/3.yaml
original: lts-23.3
4 changes: 2 additions & 2 deletions vault-tool/src/Data/Aeson/Utils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import Data.Maybe (catMaybes)
object :: [Maybe Pair] -> Value
object = Aeson.object . catMaybes

(.=!) :: (KeyValue a, ToJSON b) => Key -> b -> Maybe a
(.=!) :: (KeyValue e a, ToJSON b) => Key -> b -> Maybe a
k .=! v = Just $ k .= v

(.=?) :: (Functor f, KeyValue a, ToJSON b) => Key -> f b -> f a
(.=?) :: (Functor f, KeyValue e a, ToJSON b) => Key -> f b -> f a
k .=? v = (k .=) <$> v

newtype DataWrapper a = DataWrapper {unDataWrapper :: a}
Expand Down
3 changes: 1 addition & 2 deletions vault-tool/vault-tool.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ library
http-client,
http-types,
http-client-tls,
-- vault-tool doesn't yet work with new KeyValue constraint from aeson-2.2
aeson < 2.2,
aeson >=2.2,
unordered-containers,
time

Expand Down

0 comments on commit 9e3bb07

Please sign in to comment.