Attempt to make CWorld correct instance of Store

This commit is contained in:
2022-08-20 15:53:37 +01:00
parent e1a555ea02
commit 8571ab9254
89 changed files with 570 additions and 19 deletions
+4
View File
@@ -11,6 +11,7 @@ module Geometry.ConvexPoly
, convexPolysOverlap
, pointInPolyPoints
) where
import LinearHelp
import GHC.Generics
import Data.Aeson
import Geometry.Data
@@ -20,6 +21,8 @@ import Geometry.Intersect
import Geometry.Polygon
import Control.Lens
import TH.Derive
import Data.Store
--import qualified Control.Foldl as L
data ConvexPoly = ConvexPoly
{ _cpPoints :: [Point2]
@@ -78,3 +81,4 @@ pairPolyPointsIntersect _ _ _ = False
makeLenses ''ConvexPoly
$($(derive [d| instance Deriving (Store ConvexPoly) |]))