File tree 2 files changed +4
-4
lines changed
cardano-cli/src/Cardano/CLI
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
{-# LANGUAGE NamedFieldPuns #-}
6
6
{-# LANGUAGE RankNTypes #-}
7
7
{-# LANGUAGE ScopedTypeVariables #-}
8
+ {-# LANGUAGE TypeApplications #-}
8
9
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
9
10
10
11
{-# HLINT ignore "Redundant id" #-}
@@ -111,13 +112,13 @@ runGovernanceVoteViewCmd
111
112
fmap fst $
112
113
fromExceptTCli $
113
114
readVoteScriptWitness eon (voteFile, Nothing )
114
- fromEitherIOCli
115
- . ( outFormat
115
+ let output =
116
+ outFormat
116
117
& ( id
117
118
. Vary. on (\ FormatJson -> Json. encodeJson)
118
119
. Vary. on (\ FormatYaml -> Json. encodeYaml)
119
120
$ Vary. exhaustiveCase
120
121
)
121
122
$ unVotingProcedures voteProcedures
122
123
123
- firstExceptT GovernanceVoteCmdWriteError $ newExceptT $ writeLazyByteStringOutput mOutFile output
124
+ fromEitherIOCli @ ( FileError () ) $ writeLazyByteStringOutput mOutFile output
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ import Cardano.CLI.Type.Error.GovernanceCmdError
29
29
import Control.Monad
30
30
import Data.Aeson (eitherDecode )
31
31
import Data.ByteString.Lazy qualified as LB
32
- import Data.Text (Text )
33
32
34
33
runLegacyGovernanceCmds :: LegacyGovernanceCmds -> CIO e ()
35
34
runLegacyGovernanceCmds = \ case
You can’t perform that action at this time.
0 commit comments