Skip to content

Commit

Permalink
Integration work for node 8.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo authored and Jimbo4350 committed Nov 16, 2023
1 parent f1da4e2 commit 731816e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
13 changes: 11 additions & 2 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ repository cardano-haskell-packages
-- See CONTRIBUTING for information about these, including some Nix commands
-- you need to run if you change them
index-state:
, hackage.haskell.org 2023-08-08T19:56:09Z
, cardano-haskell-packages 2023-11-10T12:47:36Z
, hackage.haskell.org 2023-11-09T23:50:15Z
, cardano-haskell-packages 2023-11-15T14:27:11Z

packages:
cardano-cli
Expand Down Expand Up @@ -43,3 +43,12 @@ write-ghc-environment-files: always
-- IMPORTANT
-- Do NOT add more source-repository-package stanzas here unless they are strictly
-- temporary! Please read the section in CONTRIBUTING about updating dependencies.

source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-api
tag: 8be3f4da0763a118e8188d044ab60353322a8fcb
--sha256: 0vlwk48rg0aa8gbbgwj6nc6h0hwswfjd5zjx9y2x17lkpnbpmr47
subdir:
cardano-api
cardano-api-gen
2 changes: 1 addition & 1 deletion cardano-cli/cardano-cli.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ library
, binary
, bytestring
, canonical-json
, cardano-api ^>= 8.31.0.0
, cardano-api ^>= 8.32.0.0
, cardano-binary
, cardano-crypto
, cardano-crypto-class ^>= 2.1.2
Expand Down
4 changes: 2 additions & 2 deletions cardano-cli/src/Cardano/CLI/EraBased/Options/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2979,9 +2979,9 @@ pMinCommitteeSize =
, Opt.help "TODO"
]

pCommitteeTermLength :: Parser Natural
pCommitteeTermLength :: Parser EpochNo
pCommitteeTermLength =
Opt.option Opt.auto $ mconcat
fmap EpochNo $ Opt.option Opt.auto $ mconcat
[ Opt.long "committee-term-length"
, Opt.metavar "INT"
, Opt.help "TODO"
Expand Down
4 changes: 2 additions & 2 deletions cardano-cli/src/Cardano/CLI/Types/Output.hs
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ data QueryTipLocalStateOutput = QueryTipLocalStateOutput
} deriving Show

-- | A key-value pair difference list for encoding a JSON object.
(..=) :: (KeyValue kv, ToJSON v) => Aeson.Key -> v -> [kv] -> [kv]
(..=) :: (KeyValue e kv, ToJSON v) => Aeson.Key -> v -> [kv] -> [kv]
(..=) n v = (n .= v:)

-- | A key-value pair difference list for encoding a JSON object where Nothing encodes absence of the key-value pair.
(..=?) :: (KeyValue kv, ToJSON v) => Aeson.Key -> Maybe v -> [kv] -> [kv]
(..=?) :: (KeyValue e kv, ToJSON v) => Aeson.Key -> Maybe v -> [kv] -> [kv]
(..=?) n mv = case mv of
Just v -> (n .= v:)
Nothing -> id
Expand Down

0 comments on commit 731816e

Please sign in to comment.