simulation: Use Double for DiffTime #616
Annotations
1 error and 3 warnings
🛠️ Run HLint
HLint failed with status: 1. Warning (1), Suggestion (2)
|
🛠️ Run HLint:
simulation/src/SimTCPLinks.hs#L1
Warning in module SimTCPLinks: Unused LANGUAGE pragma ▫︎ Found: "{-# LANGUAGE NamedFieldPuns #-}"
|
🛠️ Run HLint:
simulation/src/LeiosProtocol/Short/VizSim.hs#L232
Suggestion in LeiosModelConfig in module LeiosProtocol.Short.VizSim: Use newtype instead of data ▫︎ Found: "data LeiosModelConfig = LeiosModelConfig {recentSpan :: DiffTime}" ▫︎ Perhaps: "newtype LeiosModelConfig\n = LeiosModelConfig {recentSpan :: DiffTime}" ▫︎ Note: decreases laziness
|
🛠️ Run HLint:
simulation/src/LeiosProtocol/Short/VizSimP2P.hs#L100
Suggestion in messageLegend in module LeiosProtocol.Short.VizSimP2P: Move brackets to avoid $ ▫︎ Found: "d `Dia.atop`\n (Dia.fc Dia.white\n $ Dia.lc Dia.white\n $ Dia.rect (Dia.width d + 20 * 12) (Dia.height d))" ▫︎ Perhaps: "d `Dia.atop`\n Dia.fc\n Dia.white\n (Dia.lc Dia.white\n $ Dia.rect (Dia.width d + 20 * 12) (Dia.height d))"
|
Loading