Go back to JSON encoding

This commit is contained in:
2022-08-21 21:23:59 +01:00
parent dd62e30026
commit f1ef75f511
95 changed files with 9 additions and 586 deletions
-6
View File
@@ -5,9 +5,6 @@
module Dodge.Data.Corpse where
import TH.Derive
import Data.Store
import Data.Binary
import Flat
import LinearHelp ()
import Control.Lens
@@ -17,9 +14,7 @@ import Geometry.Data
import ShapePicture.Data
data CorpseResurrection = NoResurrection
| HackCorpseResurrection
deriving (Eq, Ord, Show, Read, Generic, Flat)
$($(derive [d| instance Deriving (Store CorpseResurrection ) |]))
data Corpse = Corpse
{ _cpID :: Int
@@ -29,7 +24,6 @@ data Corpse = Corpse
, _cpRes :: CorpseResurrection
}
deriving (Eq, Ord, Show, Read, Generic, Flat)
$($(derive [d| instance Deriving (Store Corpse ) |]))
makeLenses ''Corpse
deriveJSON defaultOptions ''CorpseResurrection