Skip to content

Commit 5649c78

Browse files
committed
Formatting fixes
1 parent 1e136a3 commit 5649c78

File tree

8 files changed

+42
-28
lines changed

8 files changed

+42
-28
lines changed

cardano-cli/cardano-cli.cabal

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ library
4545

4646
if impl(ghc < 9.6)
4747
ghc-options: -Wno-redundant-constraints
48-
4948
hs-source-dirs: src
5049
exposed-modules:
5150
Cardano.CLI.Byron.Commands

cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,8 @@ pQueryTreasuryValueCmd era envCli = do
678678
<*> optional pOutputFile
679679

680680
pQueryNoArgCmdArgs
681-
:: forall era. ()
681+
:: forall era
682+
. ()
682683
=> ConwayEraOnwards era
683684
-> EnvCli
684685
-> Parser (QueryNoArgCmdArgs era)

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ runGovernanceCmds = \case
6565
runGovernanceVoteCmds cmds
6666

6767
runGovernanceMIRCertificatePayStakeAddrs
68-
:: forall era. ShelleyToBabbageEra era
68+
:: forall era
69+
. ShelleyToBabbageEra era
6970
-> L.MIRPot
7071
-> [StakeAddress]
7172
-- ^ Stake addresses
@@ -104,7 +105,8 @@ runGovernanceMIRCertificatePayStakeAddrs w mirPot sAddrs rwdAmts oFp = do
104105
mirCertDesc = "Move Instantaneous Rewards Certificate"
105106

106107
runGovernanceCreateMirCertificateTransferToTreasuryCmd
107-
:: forall era. ()
108+
:: forall era
109+
. ()
108110
=> ShelleyToBabbageEra era
109111
-> Lovelace
110112
-> File () Out
@@ -125,7 +127,8 @@ runGovernanceCreateMirCertificateTransferToTreasuryCmd w ll oFp = do
125127
mirCertDesc = "MIR Certificate Send To Treasury"
126128

127129
runGovernanceCreateMirCertificateTransferToReservesCmd
128-
:: forall era. ()
130+
:: forall era
131+
. ()
129132
=> ShelleyToBabbageEra era
130133
-> Lovelace
131134
-> File () Out

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

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ runGovernanceActionViewCmd
7878
proposal
7979

8080
runGovernanceActionInfoCmd
81-
:: forall era. ()
81+
:: forall era
82+
. ()
8283
=> GovernanceActionInfoCmdArgs era
8384
-> ExceptT GovernanceActionsError IO ()
8485
runGovernanceActionInfoCmd
@@ -118,7 +119,8 @@ fetchURLErrorToGovernanceActionError adt = withExceptT (GovernanceActionsProposa
118119

119120
-- TODO: Conway era - update with new ledger types from cardano-ledger-conway-1.7.0.0
120121
runGovernanceActionCreateNoConfidenceCmd
121-
:: forall era. ()
122+
:: forall era
123+
. ()
122124
=> GovernanceActionCreateNoConfidenceCmdArgs era
123125
-> ExceptT GovernanceActionsError IO ()
124126
runGovernanceActionCreateNoConfidenceCmd
@@ -166,7 +168,8 @@ runGovernanceActionCreateNoConfidenceCmd
166168
writeFileTextEnvelope outFile (Just "Motion of no confidence proposal") proposalProcedure
167169

168170
runGovernanceActionCreateConstitutionCmd
169-
:: forall era. ()
171+
:: forall era
172+
. ()
170173
=> GovernanceActionCreateConstitutionCmdArgs era
171174
-> ExceptT GovernanceActionsError IO ()
172175
runGovernanceActionCreateConstitutionCmd
@@ -226,7 +229,8 @@ runGovernanceActionCreateConstitutionCmd
226229
-- TODO: Conway era - After ledger bump update this function
227230
-- with the new ledger types
228231
runGovernanceActionUpdateCommitteeCmd
229-
:: forall era. ()
232+
:: forall era
233+
. ()
230234
=> GovernanceActionUpdateCommitteeCmdArgs era
231235
-> ExceptT GovernanceActionsError IO ()
232236
runGovernanceActionUpdateCommitteeCmd
@@ -302,7 +306,8 @@ runGovernanceActionUpdateCommitteeCmd
302306
proposal
303307

304308
runGovernanceActionCreateProtocolParametersUpdateCmd
305-
:: forall era. ()
309+
:: forall era
310+
. ()
306311
=> Cmd.GovernanceActionProtocolParametersUpdateCmdArgs era
307312
-> ExceptT GovernanceActionsError IO ()
308313
runGovernanceActionCreateProtocolParametersUpdateCmd eraBasedPParams' = do
@@ -414,7 +419,8 @@ addCostModelsToEraBasedProtocolParametersUpdate
414419
ConwayEraBasedProtocolParametersUpdate common (aOn{alCostModels = SJust cmdls}) inB inC
415420

416421
runGovernanceActionTreasuryWithdrawalCmd
417-
:: forall era. ()
422+
:: forall era
423+
. ()
418424
=> GovernanceActionTreasuryWithdrawalCmdArgs era
419425
-> ExceptT GovernanceActionsError IO ()
420426
runGovernanceActionTreasuryWithdrawalCmd
@@ -466,7 +472,8 @@ runGovernanceActionTreasuryWithdrawalCmd
466472
writeFileTextEnvelope outFile (Just "Treasury withdrawal proposal") proposal
467473

468474
runGovernanceActionHardforkInitCmd
469-
:: forall era. ()
475+
:: forall era
476+
. ()
470477
=> GovernanceActionHardforkInitCmdArgs era
471478
-> ExceptT GovernanceActionsError IO ()
472479
runGovernanceActionHardforkInitCmd

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ import Cardano.CLI.Types.Errors.GovernanceCmdError
1515
import Cardano.CLI.Types.Key
1616

1717
runGovernanceGenesisKeyDelegationCertificate
18-
:: forall era. ShelleyToBabbageEra era
18+
:: forall era
19+
. ShelleyToBabbageEra era
1920
-> VerificationKeyOrHashOrFile GenesisKey
2021
-> VerificationKeyOrHashOrFile GenesisDelegateKey
2122
-> VerificationKeyOrHashOrFile VrfKey

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ runGovernanceVoteCmds = \case
4141
& firstExceptT CmdGovernanceVoteError
4242

4343
runGovernanceVoteCreateCmd
44-
:: forall era. ()
44+
:: forall era
45+
. ()
4546
=> Cmd.GovernanceVoteCreateCmdArgs era
4647
-> ExceptT GovernanceVoteCmdError IO ()
4748
runGovernanceVoteCreateCmd
@@ -92,7 +93,8 @@ runGovernanceVoteCreateCmd
9293
writeFileTextEnvelope outFile Nothing votingProcedures
9394

9495
runGovernanceVoteViewCmd
95-
:: forall era. ()
96+
:: forall era
97+
. ()
9698
=> Cmd.GovernanceVoteViewCmdArgs era
9799
-> ExceptT GovernanceVoteCmdError IO ()
98100
runGovernanceVoteViewCmd

cardano-cli/src/Cardano/CLI/Types/Errors/PlutusScriptDecodeError.hs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{-# LANGUAGE LambdaCase #-}
22

3-
module Cardano.CLI.Types.Errors.PlutusScriptDecodeError
4-
( PlutusScriptDecodeError(..)
5-
) where
3+
module Cardano.CLI.Types.Errors.PlutusScriptDecodeError
4+
( PlutusScriptDecodeError (..)
5+
)
6+
where
67

7-
import Cardano.Api
8-
import Data.Text (Text)
8+
import Cardano.Api
9+
10+
import Data.Text (Text)
911

1012
data PlutusScriptDecodeError
1113
= PlutusScriptDecodeErrorUnknownVersion !Text
@@ -29,4 +31,4 @@ instance Error PlutusScriptDecodeError where
2931
"Version mismatch in code: script version that was read"
3032
<> pretty version
3133
<> " but tried to decode script version: "
32-
<> pshow v
34+
<> pshow v

cardano-cli/src/Cardano/CLI/Types/Errors/ScriptDataError.hs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{-# LANGUAGE LambdaCase #-}
22

3-
module Cardano.CLI.Types.Errors.ScriptDataError
4-
( ScriptDataError(..)
3+
module Cardano.CLI.Types.Errors.ScriptDataError
4+
( ScriptDataError (..)
55
, renderScriptDataError
6-
) where
7-
8-
6+
)
7+
where
98

109
import Cardano.Api
11-
import qualified Cardano.Binary as CBOR
1210

11+
import qualified Cardano.Binary as CBOR
1312

1413
data ScriptDataError
1514
= ScriptDataErrorFile (FileError ())
@@ -33,4 +32,4 @@ renderScriptDataError = \case
3332
ScriptDataErrorMetadataDecode fp decoderErr ->
3433
"Error decoding CBOR metadata at: " <> pshow fp <> " Error: " <> pshow decoderErr
3534
ScriptDataErrorJsonBytes e ->
36-
prettyError e
35+
prettyError e

0 commit comments

Comments
 (0)