Skip to content

Commit

Permalink
Format Query.hs
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosLopezDeLara committed Dec 20, 2024
1 parent 93ce7d7 commit c342bbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,8 @@ runQueryRefScriptSizeCmd
& onLeft left

newtype RefInputScriptSize = RefInputScriptSize {refInputScriptSize :: Int}
deriving Generic
deriving anyclass ToJSON
deriving (Generic)
deriving anyclass (ToJSON)

instance Pretty RefInputScriptSize where
pretty (RefInputScriptSize s) = "Reference inputs scripts size is" <+> pretty s <+> "bytes."
Expand Down Expand Up @@ -1345,7 +1345,6 @@ runQueryStakeDistributionCmd
& onLeft (left . QueryCmdAcquireFailure)
& onLeft left


writeStakeDistribution
:: OutputFormatJsonOrText
-> Maybe (File () Out)
Expand Down Expand Up @@ -1955,7 +1954,8 @@ easyRunQuerySystemStart = lift querySystemStart & onLeft (left . QueryCmdUnsuppo
easyRunQuery
:: ()
=> Monad m
=> m (Either UnsupportedNtcVersionError (Either Consensus.EraMismatch a)) -> ExceptT QueryCmdError m a
=> m (Either UnsupportedNtcVersionError (Either Consensus.EraMismatch a))
-> ExceptT QueryCmdError m a
easyRunQuery q =
lift q
& onLeft (left . QueryCmdUnsupportedNtcVersion)
Expand Down

0 comments on commit c342bbe

Please sign in to comment.