Skip to content

Commit 97c930c

Browse files
committed
Rebase changes
1 parent f16cacd commit 97c930c

File tree

2 files changed

+4
-4
lines changed
  • cardano-cli/src/Cardano/CLI

2 files changed

+4
-4
lines changed

cardano-cli/src/Cardano/CLI/EraBased/Governance/Vote/Run.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
{-# LANGUAGE NamedFieldPuns #-}
66
{-# LANGUAGE RankNTypes #-}
77
{-# LANGUAGE ScopedTypeVariables #-}
8+
{-# LANGUAGE TypeApplications #-}
89
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
910

1011
{-# HLINT ignore "Redundant id" #-}
@@ -111,13 +112,13 @@ runGovernanceVoteViewCmd
111112
fmap fst $
112113
fromExceptTCli $
113114
readVoteScriptWitness eon (voteFile, Nothing)
114-
fromEitherIOCli
115-
. ( outFormat
115+
let output =
116+
outFormat
116117
& ( id
117118
. Vary.on (\FormatJson -> Json.encodeJson)
118119
. Vary.on (\FormatYaml -> Json.encodeYaml)
119120
$ Vary.exhaustiveCase
120121
)
121122
$ unVotingProcedures voteProcedures
122123

123-
firstExceptT GovernanceVoteCmdWriteError $ newExceptT $ writeLazyByteStringOutput mOutFile output
124+
fromEitherIOCli @(FileError ()) $ writeLazyByteStringOutput mOutFile output

cardano-cli/src/Cardano/CLI/Legacy/Governance/Run.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import Cardano.CLI.Type.Error.GovernanceCmdError
2929
import Control.Monad
3030
import Data.Aeson (eitherDecode)
3131
import Data.ByteString.Lazy qualified as LB
32-
import Data.Text (Text)
3332

3433
runLegacyGovernanceCmds :: LegacyGovernanceCmds -> CIO e ()
3534
runLegacyGovernanceCmds = \case

0 commit comments

Comments
 (0)