More hlinting

This commit is contained in:
2025-12-21 19:27:49 +00:00
parent 2fbaa47c0b
commit 51c52ace7d
18 changed files with 41 additions and 46 deletions
+3 -2
View File
@@ -1,9 +1,9 @@
{-# LANGUAGE TupleSections #-}
module Dodge.Render.InfoBox (
renderInfoListAt,
renderInfoListsAt,
) where
-- this should be imported implicitly
import Dodge.Base
import Dodge.Data.Camera
import Dodge.Data.CardinalPoint
@@ -13,6 +13,7 @@ import Dodge.Render.Connectors
import Dodge.Render.List
import Geometry
import Picture
import Control.Lens
renderInfoListAt ::
Float ->
@@ -22,7 +23,7 @@ renderInfoListAt ::
(Point2, [String]) ->
Picture
renderInfoListAt x y cfig cam (p, ss) =
toTopLeft cfig (renderListAt x y (zip ss (repeat white)))
toTopLeft cfig (renderListAt x y (ss <&> (,white)))
<> color white (lConnect (V2 (x - hw) (hh -25 - y)) (worldPosToScreen cam p))
<> toTopLeft
cfig
+1 -1
View File
@@ -49,7 +49,7 @@ worldSPic cfig u =
pointIsClose = cullPoint cfig w
drawBlock :: Block -> SPic
drawBlock = (noPic . _blDraw)
drawBlock = noPic . _blDraw
drawChasm :: [Point2] -> SPic
drawChasm = foldMap (Prelude.uncurry drawCliff) . loopPairs