Remove generic and flat instances

This commit is contained in:
2022-08-21 22:38:40 +01:00
parent 36c8befa9f
commit 7181046aa3
94 changed files with 312 additions and 423 deletions
+3 -4
View File
@@ -5,7 +5,6 @@
module Picture.Data where
import Flat
import LinearHelp ()
import Control.Lens
import Data.Aeson
@@ -20,7 +19,7 @@ data Verx = Verx
, _vxLayer :: !Layer
, _vxShadNum :: !ShadNum
}
deriving (Eq, Ord, Show, Read, Generic, Flat)
deriving (Eq, Ord, Show, Read) --Generic, Flat)
data Layer
= BottomLayer
@@ -29,7 +28,7 @@ data Layer
| BloomNoZWrite
| DebugLayer
| FixedCoordLayer
deriving (Eq, Ord, Enum, Bounded, Show, Read, Generic, Flat)
deriving (Eq, Ord, Enum, Bounded, Show, Read) --Generic, Flat)
layerNum :: Layer -> Int
layerNum = fromEnum
@@ -38,7 +37,7 @@ numLayers :: Int
numLayers = length [minBound :: Layer .. maxBound]
newtype ShadNum = ShadNum {_unShadNum :: Int}
deriving (Eq, Ord, Show, Read, Generic, Flat)
deriving (Eq, Ord, Show, Read) --Generic, Flat)
polyNum, polyzNum, bezNum, textNum, arcNum, ellNum :: ShadNum
{-# INLINE polyNum #-}