Skip to content

Commit

Permalink
Wrap long function calls in UI (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcz authored Apr 5, 2021
1 parent fc55333 commit 70f7ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Echidna/UI/Widgets.hs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ summaryWidget c =
<=>
maybe emptyWidget str (ppCoverage $ c ^. coverage)
<=>
maybe emptyWidget str (ppCorpus $ c ^. corpus)
maybe emptyWidget str (ppCorpus $ c ^. corpus)
)

testsWidget :: (MonadReader x m, Has CampaignConf x, Has Names x, Has TxConf x)
Expand Down Expand Up @@ -129,7 +129,7 @@ failWidget b xs = do
let ordinals = str . printf "%d." <$> [1 :: Int ..]
pure $
foldl (<=>) emptyWidget $
zipWith (<+>) ordinals (withAttr "tx" . str <$> ppTxs)
zipWith (<+>) ordinals (withAttr "tx" . strWrap <$> ppTxs)

failureBadge :: Widget ()
failureBadge = withAttr "failure" $ str "FAILED!"

0 comments on commit 70f7ad0

Please sign in to comment.