structure grid expansion #23
Annotations
1 error and 3 warnings
HLint
HLint failed with status: 1. Warning (2), Suggestion (1)
|
HLint:
src/swarm-scenario/Swarm/Game/Scenario/Topography/Structure/Assembly.hs#L124
Warning in overlayGridTruncated in module Swarm.Game.Scenario.Topography.Structure.Assembly: Redundant $ ▫︎ Found: "PositionedGrid origin\n $ Grid\n $ zipWithPad mergeSingleRow inputArea\n $ paddedOverlayRows overlayArea" ▫︎ Perhaps: "PositionedGrid origin . Grid . zipWithPad mergeSingleRow inputArea\n $ paddedOverlayRows overlayArea"
|
HLint:
src/swarm-scenario/Swarm/Game/State/Landscape.hs#L144
Suggestion in buildWorld in module Swarm.Game.State.Landscape: Move brackets to avoid $ ▫︎ Found: "x `addTuple` (swap $ asTuple a)" ▫︎ Perhaps: "x `addTuple` swap (asTuple a)"
|
HLint:
src/swarm-scenario/Swarm/Game/State/Landscape.hs#L149
Warning in buildWorld in module Swarm.Game.State.Landscape: Redundant $ ▫︎ Found: "both (subtract 1)\n $ unCoords $ offsetCoordsByArea coords $ getGridDimensions g" ▫︎ Perhaps: "both (subtract 1) . unCoords . offsetCoordsByArea coords\n $ getGridDimensions g"
|