This commit is contained in:
2022-08-20 18:41:04 +01:00
parent ff9dbdf068
commit 6e598339f1
84 changed files with 58 additions and 216 deletions
+4 -5
View File
@@ -10,13 +10,10 @@ module Shape.Data where
import Control.Lens
import Data.Aeson
import Data.Store
import Flat
import GHC.Generics
import Geometry.Data
import LinearHelp
import LinearHelp ()
import Streaming
import TH.Derive
type Shape' = Stream (Of ShapeObj) IO ()
@@ -40,7 +37,9 @@ instance ToJSON ShapeObj where
instance FromJSON ShapeObj
newtype ShapeType = TopPrism Int
deriving (Eq, Ord, Show, Read, Generic, Flat)
deriving newtype (Eq, Ord, Show, Read)
deriving stock Generic
deriving anyclass Flat
instance ToJSON ShapeType where
toEncoding = genericToEncoding defaultOptions