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
@@ -5,10 +5,13 @@
-}
module Dodge.GameRoom
where
import LinearHelp
import Geometry
import Control.Lens
import GHC.Generics
import Data.Aeson
import TH.Derive
import Data.Store
data GameRoom = GameRoom
{ _grViewpoints :: [Point2]
@@ -23,3 +26,4 @@ instance ToJSON GameRoom where
toEncoding = genericToEncoding defaultOptions
instance FromJSON GameRoom
makeLenses ''GameRoom
$($(derive [d| instance Deriving (Store GameRoom) |]))