Skip to content

Commit

Permalink
Resolve hlint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
elopez committed May 1, 2024
1 parent 64ee7c3 commit 14629cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/Echidna/UI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ ui vm world dict initialCorpus = do

-- Handles ctrl-c
liftIO $ forM_ [sigINT, sigTERM] $ \sig ->
let handler = \_ -> do
let handler _ = do
stopWorkers workers
void $ tryPutMVar serverStopVar ()
in installHandler sig handler
Expand Down
8 changes: 4 additions & 4 deletions lib/Echidna/UI/Widgets.hs
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ logPane uiState =

showLogLine :: (LocalTime, CampaignEvent) -> Widget Name
showLogLine (time, event@(WorkerEvent workerId _)) =
(withAttr (attrName "time") $ str $ (timePrefix time) <> "[Worker " <> show workerId <> "] ")
withAttr (attrName "time") (str $ timePrefix time <> "[Worker " <> show workerId <> "] ")
<+> strBreak (ppCampaignEvent event)
showLogLine (time, event) =
(withAttr (attrName "time") $ str $ (timePrefix time) <> " ") <+> strBreak (ppCampaignEvent event)
withAttr (attrName "time") (str $ timePrefix time <> " ") <+> strBreak (ppCampaignEvent event)

summaryWidget :: Env -> UIState -> Widget Name
summaryWidget env uiState =
Expand Down Expand Up @@ -179,7 +179,7 @@ summaryWidget env uiState =
<=>
str ("New coverage: " <> timeElapsed uiState uiState.lastNewCov <> " ago") <+> fill ' '
rightSide =
padLeft (Pad 1) $
padLeft (Pad 1)
(rpcInfoWidget uiState.fetchedContracts uiState.fetchedSlots env.chainId)

timeElapsed :: UIState -> LocalTime -> String
Expand Down Expand Up @@ -304,7 +304,7 @@ tracesWidget vm = do
let traces = stripAnsiEscapeCodes $ showTraceTree dappInfo vm
pure $
if T.null traces then str ""
else str "Traces" <+> str ":" <=> (txtBreak traces)
else str "Traces" <+> str ":" <=> txtBreak traces

failWidget
:: MonadReader Env m
Expand Down

0 comments on commit 14629cf

Please sign in to comment.