Fix leaky path graph creation

This commit is contained in:
2022-06-29 23:17:45 +01:00
parent 84cb830804
commit 1abcf099e2
8 changed files with 65 additions and 28 deletions
+12
View File
@@ -0,0 +1,12 @@
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE StrictData #-}
module Dodge.Data.PathGraph where
import Geometry.Data
import Control.Lens
import Data.Graph.Inductive
data PathGraph = PathGraph
{ _pgGraph :: Gr Point2 Float
, _pgNodeMap :: NodeMap Point2
}
makeLenses ''PathGraph