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
-7
View File
@@ -8,12 +8,8 @@
module Shape.Data where
import TH.Derive
import Data.Store
import Data.Binary
import Control.Lens
import Data.Aeson
import Data.Binary
import Flat
import Geometry.Data
import LinearHelp ()
@@ -30,7 +26,6 @@ newtype ShapeType = TopPrism Int
deriving stock Generic
deriving anyclass Flat
$($(derive [d| instance Deriving (Store ShapeType) |]))
data ShapeObj = ShapeObj
{ _shType :: ShapeType
@@ -71,5 +66,3 @@ type Shape' = Stream (Of ShapeObj) IO ()
type Shape = [ShapeObj]
$($(derive [d| instance Deriving (Store ShapeV ) |]))
$($(derive [d| instance Deriving (Store ShapeObj ) |]))