Skip to content

Commit

Permalink
simulation: Fix HLint warnings from 6dc82e9
Browse files Browse the repository at this point in the history
  • Loading branch information
wenkokke committed Dec 18, 2024
1 parent e602256 commit 58063dd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion simulation/src/LeiosProtocol/Short/VizSim.hs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ accumDiffusionLatency' now _nid EnterState msgid _msg vs =
vs
accumDiffusionLatency' _now _nid _event _id _msg vs = vs

data LeiosModelConfig = LeiosModelConfig
newtype LeiosModelConfig = LeiosModelConfig
{ recentSpan :: DiffTime
-- ^ length of time the Recent* maps should cover
}
Expand Down
2 changes: 1 addition & 1 deletion simulation/src/LeiosProtocol/Short/VizSimP2P.hs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ messageLegend =
where
textBox s = Dia.alignedText 0.7 0.5 s `Dia.atop` Dia.phantom (Dia.rect (fromIntegral $ length s * 20 + 10) 20 :: CairoDiagram)
-- TODO: figure out why the width needs fudging.
addBG d = d `Dia.atop` (Dia.fc Dia.white $ Dia.lc Dia.white $ Dia.rect (Dia.width d + 20 * 12) (Dia.height d))
addBG d = d `Dia.atop` Dia.fc Dia.white (Dia.lc Dia.white $ Dia.rect (Dia.width d + 20 * 12) (Dia.height d))

------------------------------------------------------------------------------
-- The vizualisation rendering
Expand Down
1 change: 0 additions & 1 deletion simulation/src/SimTCPLinks.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}

Expand Down

0 comments on commit 58063dd

Please sign in to comment.