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
+6
View File
@@ -6,11 +6,14 @@
{-# LANGUAGE GeneralisedNewtypeDeriving #-}
module Shape.Data
where
import LinearHelp
import Geometry.Data
import GHC.Generics
import Data.Aeson
import Control.Lens
import Streaming
import TH.Derive
import Data.Store
type Shape' = Stream (Of ShapeObj) IO ()
type Shape = [ShapeObj]
@@ -47,3 +50,6 @@ pairToSV :: (Point3,Point4) -> ShapeV
pairToSV = uncurry ShapeV
makeLenses ''ShapeV
makeLenses ''ShapeObj
$($(derive [d| instance Deriving (Store ShapeV) |]))
$($(derive [d| instance Deriving (Store ShapeObj) |]))
$($(derive [d| instance Deriving (Store ShapeType) |]))