Skip to content

Commit

Permalink
hlint: fix suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
disassembler committed May 6, 2024
1 parent ed4d80d commit a528a74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ instance Show addr
formatText a _ = pack (show a)

instance Show ChurnCounters where
show (ChurnCounter a n) = List.intercalate " " ["ChurnCounters", show a, show n]
show (ChurnCounter a n) = List.unwords ["ChurnCounters", show a, show n]
instance Transformable Text IO ChurnCounters where
trTransformer = trStructuredText
instance HasTextFormatter ChurnCounters where
Expand Down
4 changes: 1 addition & 3 deletions cardano-node/src/Cardano/Tracing/OrphanInstances/Shelley.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
{-# LANGUAGE EmptyCase #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralisedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuantifiedConstraints #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
Expand Down Expand Up @@ -400,7 +398,7 @@ instance Ledger.EraPParams era => ToObject (Conway.ConwayGovPredFailure era) whe
mconcat [ "kind" .= String "DisallowedProposalDuringBootstrap"
, "proposal" .= proposal
]

toObject _ (Conway.DisallowedVotesDuringBootstrap votes) =
mconcat [ "kind" .= String "DisallowedVotesDuringBootstrap"
, "votes" .= votes
Expand Down

0 comments on commit a528a74

Please sign in to comment.